GithubHelp home page GithubHelp logo

slowgrog's Introduction

slowgrog

Spent a good amount of time trying to find out why some code was causing performance issues with Redis. This was not Redis fault per say, however it would have been nice to have a tool that could hint to what usage was wrong. Go rocks and this seemed like the kind of tool that I could hack up real quick to surface some information about the goings on in Redis. Currently the core features are:

  • Configurable sampling of commands from the Redis MONITOR command
  • Gets the most recent 10 SLOWLOG
  • Configurable sampling of the most recent X number of commands from monitor
  • INFO in JSON format

Command Arg:

Tried to keep the arguments for the redis-cli the same for auth, port and host. The other arguments are more for configuring the sampling of the data.

-h="127.0.0.1": Redis host
-p=6379: Redis port
-a="": Redis password

-cmdlimit=100: number of recent commands the MONITOR will store
-frequency=60: Number of seconds to delay between samples INFO, SLOWLOG
-monsamplen=1000: Length of miliseconds that the monitor is sampled (0 will be coninuous however this is very costly to performance)
-slogsize=10: SLOWLOG size
-webport=7071: The port listen on to render the json output

Vision:

Given some more time I would like to add a number of features that I think would be extremely helpful findout out information about what is going on with Redis.

  • REST API that can just expose specific aspects of the JSON payload
  • Lua hooks to allow for extending the tool
  • UI would be nice to display this information in a more human friendly way.

slowgrog's People

Contributors

lateefj avatar

Watchers

 avatar  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.