Get the App
SLTechnology News&Howtos  ›  Database  › 

Monitoring dump.rdb using redis-db-tools Analysi

Shulou Source: shulou.com Published: 2022-06-01 10:05:23 10月02日 Update

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

Tags: Commands directories runs successes clients clients suggestions manuals tutorials methods Times modules environment systems results online tutorials so far rules installation development Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Microsoft macOS MySQL Apple