GithubHelp home page GithubHelp logo

redis-tools's Introduction

redis-tools

A small collection of tools to help monitor your Redis server.

redistamp

Very tight client that connects to your server and stores the current date in a redistamp key every second. When used in a replicated environment, this allows you to easily check for replication lag.

Ruby tools

These use the redis and hiredis gems, and install these via the bundler gem. By default, they install their gems into tools/gems; you can cd to tools and bundle exec ./tool.rb to run them.

Output is in JSON format, for easy integration with log monitoring solutions like Splunk.

redis-slowlog

Monitors the Redis slow query log and outputs any new entries it sees.

redis-usage

Traverses the Redis keyspace via SCAN and outputs guesstimates on memory usage. It assumes that you use a colon-separated key hierarchy, e.g. "foo:bar:baz"; if a key lacks any colons, it will try separating it by dashes and underscores instead.

If any tree node gets too leafy, it will prune it and just keep stats rather than filling up memory with all the sub-key names; for example, if you have 100,000 keys like a:* and only 50 keys like b:*, you'll see the usage of each individual b:* key, but the a:* keys will be rolled up into a single size for a. (This happens at any level except the root, so if you have too many unique root-level prefixes, you may use a lot of memory and get a lot of output.)

Since this puts a lot of load on Redis, it's meant to be run on a readonly slave rather than the master database, and will abort otherwise.

redis-tools's People

Contributors

baldowl avatar byroot avatar insom avatar phoet avatar wisq 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.