Skip to content

Commit 6fb8188

Browse files
committed
add nutcracker lauch parameters explain
1 parent 03d0fbc commit 6fb8188

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redis/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Bdrp has some new features below compared to twemproxy
2323
nutcracker, redis-server, redis-sentinel should be configured properly to set up a bdrp cluster with the features mentioned above. Some key configuration items in each component will be described below.
2424

2525
+ **nutcracker**:
26-
+ program launch parameters: -A sentinel-server-ip and -S sentinel-port should be added to launch parameters in order to make nutcracker know where is your sentinel-server. It will be set to default 127.0.0.1:26379 if you don't give these two parameters.
26+
+ program launch parameters: -A sentinel-ip and -S sentinel-port should be added to launch parameters in order to make nutcracker know where is your sentinel-server. It will be set to default 127.0.0.1:26379 if you don't give these two parameters.
2727
+ auto\_eject\_hosts: It should be configured to false to avoid data loss. Bdrp use redis master slave switch to achieve high availability instead of consistent hashing which will cause data loss.
2828
+ nodes name: Each redis sharding must have nodes name. Because nutcracker will use nodes name to identify which master redis is switched in redis-sentinel's publish message.
2929
+ mutiple addresses in redis sharding: To enable read write spliting, mutiple addresses should be configured in each redis sharding. The first address should be the master redis in the sharding, it will be forwarded write requests. The others should be the slave redis in the sharding, they will be forwarded read requests round robin. Configuring only one address to disable it.

0 commit comments

Comments
 (0)