Code Archive Skip to content Google About Google Privacy Terms
ä½ï¼ ãªãã¸ã§ã¯ããã¡ã¢ãªã«ãã£ãã·ã¥ãããã¼ã¢ã³ã åçãã¼ã¸ãæã¤ã¦ã§ãã¢ããªã±ã¼ã·ã§ã³ã®è£å´ã§åããã¼ã¿ãã¼ã¹ã¸ã®è² è·ã軽æ¸ããããã¨ãç®çã«ãã¶ã¤ã³ããã¦ããã - å ¬å¼ãµã¤ã memcached: a distributed memory object caching system ç¹å¾´ ãªãã¸ã§ã¯ããã¡ã¢ãªä¸ã«ãã£ãã·ã¥ è¤æ°ãã¹ãéã§ãã£ãã·ã¥å ±æå¯è½ï¼ãªã¢ã¼ããããã£ãã·ã¥ã«ã¢ã¯ã»ã¹å¯è½ï¼ åè¨èªç¨ã®ã¤ã³ã¿ãã§ã¼ã¹ã©ã¤ãã©ãªãããã£ã¦ã¾ã å®ç¸¾è±å¯ ããããç¨é ã»ãã·ã§ã³ã¹ã㢠DBã¸ã®ã¯ã¨ãªçµæã®ãã£ãã·ã¥ ã¢ããªã±ã¼ã·ã§ã³ã¬ãã«ã®ãªãã¸ã§ã¯ãå ±æï¼éçã¤ã³ã¹ã¿ã³ã¹ï¼ ã»ãã·ã§ã³ã¹ã㢠è¤æ°ãµã¼ãéã®ã»ãã·ã§ã³æ å ±å ±æ DBã使ãæ¹æ³ã¨æ¯ã¹ã¦è² è·ãããããªãã¦ãããã ã»ãã·ã§ã³ã¹ãã¢ã¨ãã¦ã®åé¡ç¹ ã¬ããªã±ã¼ã·ã§ã³ã®ä»çµã¿ããªãã ã®ã§ãã¢ããªã±ã¼ã·ã§ã³ã®æ§è³ªã«ãã£ã¦
APCã®Webã¤ã³ã¿ã¼ãã§ã¼ã¹ã§ã¯ãã£ãã·ã¥ä½¿ç¨çã®åã°ã©ãã表示ããã¾ããããããå ã«memcacheã®ç®¡çç»é¢ãä½ã£ãæ¹ãããã£ãããããã§ãã For a long time I was looking for a nice web interface like the apc.php (comes with the apcâs source) that displays whole nine yards of stats. The only good tool is memcache-tool from the danga guys. Itâs quite complete but I guess Iâm too lazy to go on the command line. Anyways, I decided to rip write my own. Totally based
ã¿ããªå¤§å¥½ããªmemcachedãä»æ¥ã¯Brian Akerã®Cè¨èªç¨ã¯ã©ã¤ã¨ã³ãã©ã¤ãã©ãªã«ã¤ãã¦æ¸ãããã¨æãã¾ããæ¥æ¬èªã®æ å ±ãã¨ã¦ãå°ãªããããã¥ã¡ã³ãã¼ã·ã§ã³ãè±èªã ãã¨ããäºã§èå³ã¯ãããã©æãã¤ãã¦ããªãã¨ããæ¹ã®ãå½¹ã«ç«ã¦ããããªã¨æãã¾ãã æ¬é¡ã®åã« why libmemcached? æ¢ã«libmemcacheãåå¨ããã®ã«ä½æ ãlibmemcachedï¼ãã¨è¨ãã¨çç±ã®ä¸ã¤ã¯æè¿libmemcacheã®éçºãæ¢ã¾ã£ãããã§ããæ¬å®¶ã§ã¯ãããçç±ã§libmemcacheã§ã¯ãªãlibmemcachedãæ¨å¥¨ãã¦ã¾ãããåãå¹ççãªã¡ã¢ãªä½¿ç¨ãConsistent Hashingãæ§ã ãªããã·ã¥ã¢ã«ã´ãªãºã ãæ°ãããªãã¬ã¼ã¿ã«å¯¾å¿ãã¦ããçã¨ãã宣ä¼æå¥ãããã¾ããapr_memcacheã¨ããã©ã¤ãã©ãªãåå¨ãã¾ããèªåã¯ä½¿ã£ãäºããªããããã¼ã³ã¡ã³ãã ãã ãæ¨å¥¨ã
æãµã¼ãã¹ã§ã»ãã·ã§ã³æ å ±ãä¿æããããã«å©ç¨ãã¦ãã memcached(repcached)ã«é害ãèµ·ãã£ãã ã¡ããã¨è¿½ãã¦ããªããã©ããããã以ä¸ã®ãããªåå ãä»ã®äººãããããªãããã«ã é害çºçã¾ã§ memcached(repcached)ã®ä¸ã«ã¯æ®çºããããããªãã«ããºãæ å ±ãå ¥ã£ã¦ããã repcachedãµã¼ãï¼å°ã®OSå ¥ãæ¿ãããã¦ãã¦ãï¼å°ã¯åèµ·åãæåããã ï¼å°ç®ã®ãµã¼ãã¸ï¼å°ç®ã®ãµã¼ãããã®ã¬ããªã±ã¼ã·ã§ã³ãå®äºããã®ãstatsã®curr_itemsã«ã¦ç¢ºèªããã ãã£ã¦ï¼å°ç®ãåèµ·åãããã®ã®ãèµ·åããªããªã£ãã ãã®æç¹ã§ã¯ãï¼å°ã¯çãã¦ããããå¾ã§ãã¼ã¿ã»ã³ã¿ã¼ãããã£ã¨ãã¨ããæ°è»½ãªæ°æã¡ã ã£ã⦠ç¾è±¡ çãã¦ããï¼å°ç®ã®ãµã¼ãã§ã以ä¸ã®ãããªç¾è±¡ãèµ·ãã£ã⦠å¤ãsetããéã«ãããé¾å¤ä»¥ä¸ã®exptimeãæå®ããã¨å³expireãããã ãã®é¾å¤ã¯
repcachedã«ã¤ã㦠repcachedã¨ã¯ãmemcachedã«ãã¼ã¿ã®ã¬ããªã±ã¼ã·ã§ã³æ©è½ã追å å®è£ ãããã®ã§ãã memcachedã¯ã以ä¸ã®ãããªã¨ããã«ãã使ãããã¨æãã¾ãã ä¸æçãªãã¼ã¿ã®ä¿åå ´æã¨ã㦠ãã£ãã·ã¥ãä¿åããå ´æã¨ã㦠RDBMSã®ãã¼ã¿ã®ãã£ãã·ã¥ çæãããã¼ã¸ãã¼ã¿ã®ãã£ãã·ã¥ ãããã®å ´åãæ¶ãã¦ãããã¼ã¿ãªã®ã§ãä¸ãä¸memcachedããã¦ã³ãã¦ãåé¡ã¯ãªãã¯ãã§ãã ããããå½±é¿ãå ¨ããªãããã§ã¯ããã¾ããã ä¾ãã°ãMySQLã®ãã¼ã¿ãmemcachedã§ãã£ãã·ã¥ãã¦ããå ´åãmemcachedããã¦ã³ãã¦ããéã¯ç´æ¥MySQLã«ã¢ã¯ã»ã¹ããããã¨ã«ãªãDBãµã¼ãã®è² è·ãä¸ããã¾ããã¾ããmemcachedãåèµ·åãã¦ãã£ãã·ã¥ã失ãããå ´åã¯ãåã³ãã£ãã·ã¥ãæºã¾ãã¾ã§ã¯DBãµã¼ãã«è² è·ãããããã¨ã«ãªã£ã¦ãã¾ãã¾ãã ãã®ããã«
2008-09-27 17:53:11 +0900 (78d); rev 114 ãã®ææ¸ã«ã¤ã㦠åæ£åã¡ã¢ãªãªãã¸ã§ã¯ããã£ãã·ã³ã°ã·ã¹ãã ã§ãã memcached ã«ã¤ãã¦ããã®ä»çµã¿ãå°å ¥ãããã°ã©ãã³ã°è¨èªããã®å©ç¨æ¹æ³ã¾ã§ãç´¹ä»ãã¾ãã ãã®æç« ã¯å¸¸ã«æ¸ãããã§ãã誤åè±åãééãã®ææãæ å ±æä¾ãªã©ãæè¿ãã¾ãã ãã®ææ¸ã®å¯¾è±¡è memcached ã®å°å ¥ãæ¤è¨ãã¦ããã²ã¨ memcached ãããã°ã©ãã³ã°è¨èªããå©ç¨ããæ¹æ³ãç¥ãããã²ã¨ memcached ã®ä»çµã¿ãä»æ§ãç¥ãããã²ã¨ ç°å¢ã«ã¤ã㦠以ä¸ã®ãããªç°å¢ãæ³å®ãã¦ãã¾ãã UNIX ããã³ UNIX ã©ã¤ã¯ OS x86 ã¢ã¼ããã¯ã㣠memcached 㯠x86 以å¤ã®ã¢ã¼ããã¯ãã£ã§ãåä½ãã¾ããããã®ææ¸ã§ã¯ x86 åæã¨ãã¦è¨è¿°ãã¾ãã memcached ã¨ã¯ memcached ã¯
ã©ã³ãã³ã°
ã¡ã³ããã³ã¹
ãç¥ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}