Create and administrate your Redis Cluster from the Command Line.
Inspired heavily by redis-trib.go and the original redis-trib.rb.
Dependencies are handled by govendor, simple install it and type govendor add +external
to fetch them.
$ git clone https://github.com/PoplarYang/redis-trib.git
$ cd redis-trib
$ make deps
$ cd redis-trib
$ make all
NAME:
redis-trib - Redis Cluster command line utility.
For check, fix, reshard, del-node, set-timeout you can specify the host and port
of any working node in the cluster.
USAGE:
redis-trib [global options] command [command options] [arguments...]
VERSION:
v0.2.1
commit: 89485bd15e7fd42d365a66b4cc87339461e718c7
giturl: https://github.com/PoplarYang/redis-trib
AUTHOR:
PoplarYang <[email protected]>
COMMANDS:
add-node, add add a new redis node to existed cluster.
call run command in redis cluster.
check check the redis cluster.
create create a new redis cluster.
del-node, del del a redis node from existed cluster.
fix fix the redis cluster.
import import operation for redis cluster.
info display the info of redis cluster.
rebalance rebalance the redis cluster.
reshard reshard the redis cluster.
set-timeout set timeout configure for redis cluster.
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--debug enable debug output for logging
--verbose verbose global flag for output.
--log value set the log file path where internal debug information is written
--log-format value set the format used by logs ('text' (default), or 'json') (default: "text")
--help, -h show help
--version, -v print the version