¿ù°£ Àα⠰Խù°

°Ô½Ã¹° 708°Ç
   
memcached.conf
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2017-09-26 (È­) 13:12 Á¶È¸ : 6690
                                
$ cat /etc/memcached.conf
-d
logfile /var/log/memcached.log
-m 64
-p 11211 
-u memcache
-l 172.XXX.XXX.XXX


-d     Run memcached as a daemon.
-m <num>  Use <num> MB memory max to use for object storage; the default is 64 megabytes.
-p <num>   Listen on TCP port <num>, the default is port 11211.
-u <username>  Assume the identity of <username> (only when run as root).
-l <addr>
Listen on <addr>; default to INADDR_ANY. <addr> may be specified as host:port.  If you don't specify a port number, the value you specified with -p or -U is used.  You  may  specify multiple  addresses  separated  by  comma  or  by using -l multiple times. This is an important option to consider as there is no other way to secure the installation. Binding to an internal or firewalled network interface is suggested.
-c <num>  Use <num> max simultaneous connections; the default is 1024.


# netstat -anlp |grep memcached  |grep ESTABL |wc -l
1087

-c 2048

#  echo stats | nc 172.16.217.1 11211 | grep curr_conn
STAT curr_connections 2997

#  echo stats | nc 172.16.217.1 11211 
STAT pid 16621
STAT uptime 2403870
STAT time 1526261275
STAT version 1.4.25 Ubuntu
STAT libevent 2.0.21-stable
STAT pointer_size 64
STAT rusage_user 1589.272000
STAT rusage_system 4029.416000
STAT curr_connections 2997
STAT total_connections 2793336
STAT connection_structures 3029
STAT reserved_fds 20
STAT cmd_get 52895614
STAT cmd_set 5799292
STAT cmd_flush 0
STAT cmd_touch 0
STAT get_hits 47096435
STAT get_misses 5799179
STAT delete_misses 0
STAT delete_hits 0
STAT incr_misses 0
STAT incr_hits 0
STAT decr_misses 0
STAT decr_hits 0
STAT cas_misses 0
STAT cas_hits 0
STAT cas_badval 0
STAT touch_hits 0
STAT touch_misses 0
STAT auth_cmds 0
STAT auth_errors 0
STAT bytes_read 51083651966
STAT bytes_written 382018376333
STAT limit_maxbytes 67108864
STAT accepting_conns 1
STAT listen_disabled_num 0
STAT time_in_listen_disabled_us 0
STAT threads 4
STAT conn_yields 0
STAT hash_power_level 16
STAT hash_bytes 524288
STAT hash_is_expanding 0
STAT malloc_fails 0
STAT bytes 6450149
STAT curr_items 791
STAT total_items 5799292
STAT expired_unfetched 2368431
STAT evicted_unfetched 0
STAT evictions 0
STAT reclaimed 2634587
STAT crawler_reclaimed 0
STAT crawler_items_checked 0
STAT lrutail_reflocked 0
END

# service memcached restart

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.