Memcached ã®å®¹éãç£è¦ãã
Cache::Memcached ãå©ç¨ã㦠Memcached ãå©ç¨ãã¦ãã¾ããã
容éãç£è¦ãããã¨æã£ãã¨ãã« ã¨ã©ã¼(容éãä¸æ¯ã«ããset失æã¨ã)ããã³ããªã³ã°ããæ¹æ³ããªãããã§ããã(ç¥ããªãã ãï¼)
ã©ãã«ã容éãç£è¦ã§ããªãããªãã¨ãããã¨ã§ãmemcachedãµã¼ãã®ã½ã¼ã¹ã«å梱ãã¦ããã¹ã¯ãªãããè¦ã¤ãã¾ããã
ç£è¦ã¹ã¯ãªãã
memcached/scripts/memcached-tool
USAGE
# ./memcached-tool Usage: memcached-tool[mode] memcached-tool 10.0.0.5:11211 display # shows slabs memcached-tool 10.0.0.5:11211 # same. (default is display) memcached-tool 10.0.0.5:11211 move 7 9 # takes 1MB slab from class #7 # to class #9. You can only move slabs around once memory is totally allocated, and only once the target class is full. (So you can't move from #6 to #9 and #7 to #9 at the same itme, since you'd have to wait for #9 to fill from the first reassigned page)
å®è¡ä¾) ãã¼ã¿ãä½ãã¹ãã¢ããã¦ããªãç¶æ
# ./memcached-tool localhost:11211 display # Item_Size Max_age 1MB_pages Full? 6 64 B 0 s 1 no 7 128 B 0 s 1 no 8 256 B 0 s 1 no 9 512 B 0 s 1 no 10 1 kB 0 s 1 no 11 2 kB 0 s 1 no 12 4 kB 0 s 1 no 13 8 kB 0 s 1 no 14 16 kB 0 s 1 no 15 32 kB 0 s 1 no 16 64 kB 0 s 1 no 17 128 kB 0 s 1 no
ãã®ã¹ã¯ãªãããå©ç¨ã㦠cronç ã§å®æçã«ãã¼ã¿ãæ¡åããã¨ãMemcachedã®å®¹éãç£è¦ã§ãã¦ã¹ããã§ããã