Skip to content

paven627/redis-ctl

 
 

Repository files navigation

Redis Instance Contolling 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

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/instances.json and /tmp/poll.json as default IPC files.

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)

About

Redis Cluster Contoller with web interface

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 45.4%
  • HTML 38.6%
  • CSS 12.0%
  • JavaScript 2.4%
  • Makefile 1.6%