Monitor Dump.rdb with Redis-db-tools analysis

Source: Internet
Author: User
Tags install redis

The redis-db-tools is developed using Python. It is recommended to use Python2.7.12 before using Python2.6.6 to start the times wrong.

  1. Follow the online tutorial to install Python yourself, the system environment is CentOS.

  2. Python Install later download pip,http://www.python-libs.com/13205/item/detail.html

  3. PIP is downloaded and installed

  4. #安装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

  5. Install redis-db-tools using the command pip install Rdbtools

  6. Install the Redis-py client for find memory by a single key, using the command pip install Redis


    At this point, Dbtool installation is complete.

    Note that the same needs to be used in the Python installation directory.

    Specific usage rules and use cases are described in:

    Https://github.com/sripathikrishnan/redis-rdb-tools

    There's a specific user manual.

    After you export Excel, the results are as follows:


    Database Type Key Size_in_bytes Encoding Num_elements Len_largest_element
    0 Hash Last_drive_green_leaderboard_3 283 Ziplist 21st 8
    0 Hash Valcan_railways_data_hasded_data 11448484 Hashtable 124187 127
    0 Hash Valcan_bustop_train_data 232379812 Hashtable 53805 21008
    0 Hash Last_drive_green_leaderboard 52644 Hashtable 711 8
    0 Hash Valcan_railways_data 15302964 Hashtable 37231 10232
    0 String Wx_access_token 256 String 138 138

This article from "Upright Heroes" blog, reproduced please contact the author!

Monitor Dump.rdb with Redis-db-tools analysis

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.