Manage your Redis Clusters in a web GUI
Commit a cluster migration from a HTML form
Display cluster nodes in a tidy table
RedisCtl is a set of Python toolkit with a web UI based on Flask that makes it easy to manage Redis and clusters.
RedisCtl contains
- a web UI that displays Redis status and receives commands
- a daemon that polls each Redis and collect info and runs tasks like slots migrating for clusters
By default its optional external dependencies are
- OpenFalcon with this statistics service, RedisCtl is able to draw charts for Redis instances on historic usage of memory, CPU, etc.
- Eru with this dockerization service, RedisCtl is able to launch Redis as docker containers, this will also enable automatical deployment and migration when a cluster mode Redis serves too much data.
Already has your own statistics / containerization service? You could make your own overridings (in Chinese).
First, install Python-dev header files and libs
# debain / ubuntu
apt-get install python-dev
# centos
yum install python-devel
Then clone this project and cd in to install dependencies
pip install -r requirements.txt
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 daemon that collects Redis info
python daemon.py
Also you could use similar ways to configure daemon, just like setup up the main server.
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.
For web interface usage, please read here (CN)