GithubHelp home page GithubHelp logo

wuyongshenghub / rdb_bigkeys Goto Github PK

View Code? Open in Web Editor NEW

This project forked from weiyanwei412/rdb_bigkeys

0.0 1.0 0.0 75 KB

scan redis rdb to find big keys. 分析redis的RDB文件,输出big key报告

License: GNU General Public License v3.0

Go 100.00%

rdb_bigkeys's Introduction

简介

线上遇到redis CPU高与网卡带宽跑满的情况, 很明显的bigkey问题, 但使用一个开源的以python编写的redis RDB分析工具来分析big key, 分析<br>
150MB的RDB文件花了一个小时, 这太慢了, 因此使用go重新写了个分析RDB文件来找出big key的工具rdb_bigkeys
速度很快, 同样分析150MB的RDB文件, 只要1分2秒。

rdb_bigkeys

生成的bigkey报告为CSV格式:

rdb_bigkeys_mem

   使用很简单,全部就下面提到的5个参数: ./rdb_bigkeys --bytes 1024 --file bigkeys_6379.csv --sep 0 --sorted --threads 4 dump6379.rdb 上述命令分析dump6379.rdb文件中大于1024bytes的KEY, 由大到小排好序, 以CSV格式把结果输出到bigkeys_6379.csv的文件中

rdb_bigkeys's People

Contributors

godannylai avatar

Watchers

James Cloos 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.