The developers swear that they didn’t change the caching recently, they checked the code twice and have found no problem. You spent already 50GB on the memcache cluster, but you still see many evictions and the cache hit ratio doesn’t look good since a few days. If your memcached version is above 1.4.31, read next section for advanced method of dumping keys. pylibmc (implemented in C) Dumping Memcache Keys.python-memcached (implemented in Python).libmemcached: (used by PHP and others).libketama: (supports C, PHP, Java, Python).Also on large memcached instances refrain from dumping the keys as it might cause some load on your server. Here is how it should look (screenshot from the project homepage): When using this script ensure access is protected and not to trigger the “flush_all” menu option by default. Most useful is the global memory usage graph which helps to identify problematic instances in a distributed environment. Using this PHP script you can quickly add memcached statistics to a webserver of your choice. It will give you the I/O throughput, the number of evictions, the current hit ratio and if run with “–commands” it will also provide the number of GET/SET operations per interval.īelow you find a screenshot of what stats-proxy looks like: You can use memcache-top for live-monitoring a single memcached instance. Note that some can monitor multiple memcached instances, while others can only monitor a single instance at a time. We’ll have a look at the following tools. There are not many tools out there, but some useful are. So the question is: How to monitor your distributed memcache setup? And it becomes even more complex if you run multiple or distributed memcache instances available on different hosts and ports. There is no real logging you can only use the -v/-vv/-vvv switches when not running in daemon mode to see what your instance does. But from an operating perspective memcached is a black box. When using memcached or memcachedb everything is fine as long as it is running.
0 Comments
Leave a Reply. |