Skip to content

soarpenguin/redis-trib

Repository files navigation

redis-trib redis cluster Command Line tool

Build Status

Create and administrate your Redis Cluster from the Command Line.

Inspired heavily by redis-trib.go and the original redis-trib.rb.

Dependencies

Dependencies are handled by govendor, simple install it and type govendor add +external to fetch them.

Install

Restore project env in first build

$ git clone https://github.com/soarpenguin/redis-trib.git
$ cd redis-trib
$ make govendor
$ make bin
$ PROG=./redis-trib source ./autocomplete/bash_autocomplete

Build the code

$ cd redis-trib
$ make bin

Usage

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.1.0
commit: 533d96aba4b0e73649dcf81209156230698666aa

AUTHOR(S):
   soarpenguin <soarpenguin@gmail.com>

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.

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

About

Redis cluster tool script of redis-trib in golang.

Resources

Stars

Watchers

Forks

Packages

No packages published