A Redis cluster proxy.
Build
Requirements:
-
UNIX-like system with port-reuse support
-
pthread
-
C++ compiler & lib with C++11 features
-
Google Test (for test)
make
or compile with g่น
make COMPILER=g++
To link libstdc++ statically, use
make STATIC_LINK=1
Run
./cerberus example.conf
The argument is path of a configuration file, which should contains at least
- bind : (integer) local port to listen
- node : (address) one of active node in a cluster; format should be host:port
- thread: (integer) number of threads
Restricted Command Bypass
MGET
: execute multiple GETsMSET
: execute multiple SETsDEL
: execute multiple DELsRENAME
: if source and destination are not in the same slot, execute a GET-SET-DEL sequence
For more information please read here (CN).