It would be nice if the memcache statistics were visible from the admin screens.

http://au.php.net/manual/en/function.Memcache-getExtendedStats.php

Comments

lyricnz’s picture

StatusFileSize
new2.18 KB

I know it's "coming soon", but here's a quick and dirty implementation until then. See attachment.

lyricnz’s picture

StatusFileSize
new2.3 KB

Updated version that supports unavailable servers.

lyricnz’s picture

TODO:

  • present results better:
    • format timestamp into human readable
    • format uptime into human readable
    • display some values as % of max (items, connections)
    • hit rate %
  • statistics for hit-rate on each node/cluster/global
  • button to clear caches
  • view cache entries (at least cache keys, expiry times)
robertdouglass’s picture

Nice stuff. Nicholas Thompson has already implemented many of the things on your TODO list, so don't duplicate his effort. I'll try to get as much of this into the repository as soon as possible. Thanks!

nicholasthompson’s picture

Assigned: Unassigned » nicholasthompson
Priority: Minor » Normal
StatusFileSize
new10.23 KB

As Rob said - I've already made a start on this + a complete admin section. This will be a "sibling" module to the main memcache setup.

This means that when you dont want the stats or the admin config pages, you can disable the module thus reducing page loading overhead.

My current admin page consists of all of your To Do list excecpt a cache dump list which I think will be quite hard to do.

I've attached a screenshot of roughly how the new admin screen will look (the attached one is an old/custom one for www.pponline.co.uk which is a 4.7 site).

nicholasthompson’s picture

Component: Miscellaneous » User interface
nicholasthompson’s picture

Just to keep this updated - I spent tonight working on it and made good progress...

I hopefully will have something to post in the next few days.

lyricnz’s picture

O honey nurse, what news?

nicholasthompson’s picture

I thought I committed something... I'll have to take a look (been sidetracked recently).

robertdouglass’s picture

Status: Active » Fixed

The memcache_admin module is working pretty well now. Closing this, BUT lyricnz, it would be great if you could add your support for the offline servers to the existing code.

Anonymous’s picture

Status: Fixed » Closed (fixed)