Giter Club home page Giter Club logo

redis-ctl's Introduction

Redis Instance Controlling and Distribution Service

Dependency

Python-dev header files and libs

# debain / ubuntu
apt-get install python-dev

# centos
yum install python-devel

Install dependencies via

pip install -r requirements.txt

OpenFalcon (optional) a statistics data server, Redis-Ctl would draw charts like redis memory / CPU usage if open-falcon enabled.

Eru (optional) a great power-up you should ever try. It allows Redis-Ctl launching redis / cerberus in docker containers on a web page, and even automatically deploying new redis and migrating slots when a redis serves too much data.

Configure and Run the Server

Run with all configurations default

python main.py

Use env vars, like

MYSQL_USERNAME=redisctl MYSQL_PASSWORD=p@55w0rd python main.py

Check config.py for configurable items.

To use a configure file, copy override_config.py.example to override_config.py, change anything you want. This file would be imported and override any default config or env vars in config.py if available.

Run the Polling Daemon

Process to polling redis nodes and proxy status.

Run

python daemon.py

Also you could use similar ways to configure daemon, just like setup up the main server.

IPC

The server and daemon uses /tmp/details.json and /tmp/poll.json as default IPC files. You could change the directory for those temp files by passing the same PERMDIR environ to the web application and the daemon.

The programs don't use redis to do the communication, however, because they are the controllers of redis.

Usage

For web interface usage, please read here (CN)

redis-ctl's People

Contributors

bluekarl avatar cmgs avatar pagecache avatar tonicbupt avatar zheplusplus avatar

Watchers

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