Giter Club home page Giter Club logo

rdb_scanner's Introduction

简介

扫描redis RDB文件, 找出大key. 注意不支持版本大于或者等于4.0.0的redis, 此时可使用https://github.com/GoDannyLai/redis_scanner
线上遇到redis CPU高与网卡带宽跑满的情况, 很明显的bigkey问题,使用类似的工具来分析, 150MB的RDB需要1个小时才出结果。
而使用rdb_scanner只需要63秒

生成的bigkey报告为CSV格式:

csvfile

使用很简单,全部就6个参数:
    ./rdb_scanner.exe -b 1024 -o tmp/bigkeys_6380.csv -S -l 10 -t 3 tmp/dump6378.rdb
	上述命令以3个线程分析dump6378.rdb文件中大于1024bytes的KEY, 以CSV格式把最大的10个key输出到bigkeys_6380.csv的文件中

联系

有任何建议或者bug, 请联系[email protected]   

rdb_scanner's People

Contributors

godannylai avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.