-
Notifications
You must be signed in to change notification settings - Fork 58
memcached 구동 옵션
Namjae Kim edited this page Jul 7, 2022
·
9 revisions
| 옵션 | 설명 | 기타 |
|---|---|---|
-E |
Engine to load, (for example, -E .libs/default_engine.so) |
| 옵션 | 설명 | 기본값 | 기타 |
|---|---|---|---|
-p <num> |
TCP 포트 번호 | 11211 | |
-U <num> |
UDP 포트 번호 | 11211 | 0 is off |
-s <file> |
UNIX socket path | ||
-a <mask> |
mask for UNIX socket | 0700 | in octal |
-l <ip_addr> |
interface to listen on | INADDR_ANY(모든 주소) | |
-d |
백그라운드 실행 | ||
-r |
maximize core file limit | ||
-u <username> |
<username>이 실행한 것으로 가정 |
root 실행 시 | |
-c |
max simultaneous connections | 1024 | |
-k |
lock down all paged memory. Note that there is a limit on how much memory you may lock. Trying to allocate more than that would fail, so be sure you set the limit correctly for the user you started the daemon with (not for -u <username> user; under sh this is done with 'ulimit -S -l NUM_KB'). |
||
-v, -vv, -vvv
|
verbose, very verbose, extremely verbose | ||
-h |
도움말 출력 후 종료 | ||
-i |
memcached, libevent licence 출력 | ||
-P <file> |
save PID in <file>
|
only used with -d option |
|
-t <num> |
number of threads to use | 4 | |
-R |
Maximum number of requests per event, limits the number of requests process for a given connection to prevent starvation | 20 | |
-b |
Set the backlog queue limit | 1024 | |
-B |
Binding protocol - one of ascii, binary, or auto | auto | |
-e |
engine_config 옵션, <key>=<value>;<key>=<value> 형태로 직접 지정하거나, config_file=</path>로 파일 지정 가능 |
| 옵션 | 설명 | 기본값 | 기타 |
|---|---|---|---|
-m <num> |
최대 메모리 | 64 | MB 단위 |
-M |
메모리 부족한 경우 (item 삭제 대신)에러 | ||
-g |
sticky(gummed) memory limit | 0 | MB 단위 |
-f <factor> |
chunk size growth factor | 1.25 | |
-n <bytes> |
minimum space allocated for key+value+flags | 48 | |
-D <char> |
Use <char> as the delimiter between key prefixes and IDs. This is used for per-prefix stats reporting. The default is ":" (colon). If this option is specified, stats collection is turned on automatically; if not, then it may be turned on by sending the "stats detail on" command to the server. |
||
-L |
Try to use large memory pages (if available). Increasing the memory page size could reduce the number of TLB misses and improve the performance. In order to get large pages from the OS, memcached will allocate the total item-cache in one large chunk. | ||
-C |
Disable use of CAS | ||
-I |
Override the size of each slab page. Adjusts max item size | 1mb | min: 1k, max: 128m |