Re:From 1.5 GB to 50 MB: The Story of my Redis Database
by ksri on Thursday March 21, 2013 @01:45PM
(#5417267)
antirez - Author of redis-rdb-tools here. Would you be interested in a patch that adds profiling support to redis-cli?
My approach is to parse the rdb file so that the running server isn't affected. It approximates memory usage, but is fairly representative.
Re:From 1.5 GB to 50 MB: The Story of my Redis Database
by antirez on Thursday March 21, 2013 @02:47PM
(#5417751)
Thanks ksri, that would be very welcomed.
I think a viable design would be to put into redis-cli only things that are network oriented, so we should actually merge the functionality of your current tool into redis-check-rdb, that should be renamed just redis-rdb, with the following features:
1) Everything redis-rdb-tools is currently able to do.
2) Sanity checks of RDB files, like redis-check-rdb is doing already.
Makes sense? Thanks again, this would be very very appreciated.
There are a few like redis-cli --latency, or redis-key --bigkeys (I encourage you to try both if you never did it before), but more are needed in order to profile memory, big keys, pretty-print the Slow Log output, and so forth.
The availability of external tools is surely of a great help, but I hope that in the long run we'll have the most important things integrated into redis-cli directly.