dormando wrote:
> Yo,
> I couldn't sleep, so:
> http://github.com/dormando/damemtop
> (or: http://consoleninja.net/code/memcached/damemtop-0.1.tar.gz)
> Early release of a utility I've been working on in the last few days. Yes,
> sorry, I'm aware this makes /four/ memcached top programs. So, I had to
> make mine awesome.
> In order to be truly awesome, I need to spend another day working on it to
> add a few things, but it's in a state now where it can be useful to
> people. So, up it goes, and I'll take feedback/ideas/patches.
> In short, it's a top utility which lets you take any stat memcached spits
> out from 'stats', 'stats items', or 'stats slabs', and display it in a
> 'top' like interface. With totals, averages, etc. It also supports
> "computed" columns, hit_rate, fill_rate, soon to be many more. Finally,
> you can choose an arbitrary column to sort the output. I have more
> memcached's than will fit on a stretched out terminal, so it's nice to be
> able to sort :)
> In order to change the display around you'll need to edit the
> damemtop.yaml file (example included). Also in order to run it at all
> you'll need to install AnyEvent and YAML CPAN modules. I'm brutally aware
> of adversity for installing simple modules, but these are in very common
> use, and AnyEvent allows the utility to scale to hundreds of instances. It
> takes 0.2 seconds to poll every single stat and display against TypePad's
> entire cluster.
> Upcoming ideas/features:
> - a '--helpme' mode that makes a big YAML dump folks can share with the
> mailing list to expediate assistance.
> - many more computed columns.
> - a "drill down" mode for exploring a single or custom set of instances.
> - a "slabs" mode for easy analysis and aggregation of the individual slab
> stats.
> - online config editing.
> - more formatting. "shorteners" for large numbers. bytes -> K -> M ->
> G/etc.
> - better docs, more fleshed out config loader.
> - scrolling output modes.
> - multi-cluster support (switch views between groups of servers)
> - rolling averages for some views.
> - latency monitor (testing a bunch of commands)
> - YAML output/input modes for logging, output into monitoring/graphing
> systems, input into multiple 'damemtop' listeners.
> - pretty colors.
> - reorganize code a little. It got messier than I like :/
> Dunno... stuff? Maybe a quickie mode that can give you warnings or notes
> about your configuration based on current stats? I'll work on this for a
> few hours each week and kick out a new version for a month or so. I don't
> expect (nor want) it to reach the complexity of something like innotop.
> The intent for this module to replace the 'scripts/memcached-tool'
> program, and be distributed with memcached itself.
> have fun,
> -Dormando