views:

915

answers:

2

We've been running eAccelerator on each of 3 webservers and are looking to move to a memcache pool across all 3, hopefully reducing by about 2/3 our db lookups.

One of the handy things about eAccelerator is the web-based control interface (control.php), which has proved very useful when we've had to flush the cache unexpectedly, quickly monitor which scripts are in cache, etc.

We've been looking but haven't found anything that offers the same type of functionality for memcache - does anyone know if such a thing exists?

Obviously flushing cache etc is easy enough with memcache on the console, but our particular set-up means we may have guys monitoring our front-end and needing to flush the cache who will not necessarily have shell access on the servers.

A: 

If all you need to do is to be able to flush the cache from a web-application, you could create a simple php-page and then use the system() call...

Cache flushing is part of what we're looking for, but also a way to monitor what scripts are currently in there, how much data is in there, etc - basically the same stuff available on the EA control panel page.

We've played around with munin plugins for showing data usage, and were thinking we'd have to go down the line suggested above (system calls, etc), but were hoping that someone, somewhere would have rolled something similar already!

ConroyP
+5  A: 

memcache.php may be what you're looking for.

memcache.php that you can get stats and dump from multiple memcache servers.

Can delete keys and flush servers.

DavidM
it's also now included in the APC distribution package from PECL.
Alister Bulman
by the APC package, I do of course, mean the memcache PECL package.
Alister Bulman