mymemcalc is a command-line utility for basic reporting on Memcached Performance for groups of memcached servers.
Sample Output:
%> ./mymemcalc frontend
Statistics For: frontend
Memcache Hit Ratio: 98.45%
Total Hits: 403343322
Total Misses: 6319630
Memcache Fill Ratio: 30.59%
Total Bytes: 9663676416
Used Bytes: 2956557684
$> ./mymemcalc --quiet frontend
Statistics For: frontend
Memcache Hit Ratio: 98.45%
Memcache Fill Ratio: 30.59%
System Requirements
Required Perl Modules:
- Pod::Usage
- Getopt::Long
- XML::Simple
- Cache::Memcached
Usage Notes:
- You must change the first line of the program to reflect your Perl installation
Sample Usage:
%> ./mymemcalc.pl --help
Usage:
mymemcalc [options] pool
Options:
--config=<full_path_to_file> The config file to use
--help Display this help and exit.
--print-defaults Print the program argument list and exit.
--quiet Do not output total set/get numbers.
--version Output version information and exit.
pool The pool (as defined in the config file)
for which to calculate statistics
defaults are:
ATTRIBUTE VALUE
-------------------------- ------------------
config /etc/mymemcalc.cnf
help FALSE
print-defaults FALSE
quiet FALSE
version FALSE
Package Contents
- RELEASE_HISTORY: Change log for all current & past versions
- mymemcalc.cnf.example: Sample configuration file
- mymemcalc: The executable perl script
Change Log v0.0.1 (Current Version)
0.0.2 - 07 July 2008 * Added the --quiet command-line option to not display raw numbers * Output now also includes Memcache Fill Ratio 0.0.1 - 05 July 2008 * Initial Release
Project Roadmap
- Allow multiple pools to be queried at once
- Automatically check for updates
Contact/Feedback
Feel free to email me ryan.a.lowe at gmail.com with bug reports or feature requests.
Other Projects
- omnimysql - http://code.google.com/p/omnimysql
- mysqldoc - http://code.google.com/p/mysqldoc