Monitoring dump.rdb using redis-db-tools Analysi
Redis-db-tools is developed using Python. It is recommended to use Python2.7.12, before using Python2.6.6 to start the Times error.
Follow the online tutorials to install Python yourself, and the system environment is centos.
Download pip, http://www.python-libs.com/13205/item/detail.html after Python installation
Install pip after download
# install piptar-zxvf pip-9.0.1.tar.gz cd pip-9.0.1python setup.py install
After the pip installation is successful, enter / usr/local/python2.7/bin, or run the command python2.7-m pip as a module, either without entering the directory.
Use the command pip install rdbtools to install redis-db-tools
Install the redis-py client for find memory by a single key, using the command pip install redis
At this point, dbtool is installed.
Note that you also need to be in the Python installation directory when using it.
For more information on specific usage rules and use cases, please see:
Https://github.com/sripathikrishnan/redis-rdb-tools
There is a specific manual in it.
The result of exporting excel is as follows:
Databasetypekeysize_in_bytesencodingnum_elementslen_largest_element0hashLAST_DRIVE_GREEN_LEADERBOARD_3283ziplist2180hashVALCAN_RAILWAYS_DATA_HASDED_DATA11448484hashtable1241871270hashVALCAN_BUSTOP_TRAIN_DATA232379812hashtable53805210080hashLAST_DRIVE_GREEN_LEADERBOARD52644hashtable71180hashVALCAN_RAILWAYS_DATA15302964hashtable37231102320stringWX_ACCESS_TOKEN256string138138