listen redis-write
bind 192.168.2.116:16379
balance leastconn
mode tcp
option tcp-check
tcp-check connect
tcp-check send PING\r\n
tcp-check expect string PONG
tcp-check send info\ replication\r\n
tcp-check expect string role:master
tcp-check send QUIT\r\n
tcp-check expect string +OK
server redis00 192.168.2.92:6379 check port 6379 inter 1s rise 2 fall 2 maxconn 50000
server redis01 192.168.2.116:6379 check port 6379 inter 1s rise 2 fall 2 maxconn 50000
server redis02 192.168.2.117:6379 check port 6379 inter 1s rise 2 fall 2 maxconn 50000
server redis03 192.168.2.118:6379 check port 6379 inter 1s rise 2 fall 2 maxconn 50000
listen redis-read
bind 192.168.2.116:26379
balance leastconn
mode tcp
option tcp-check
tcp-check connect
tcp-check send PING\r\n
tcp-check expect string PONG
tcp-check send info\ replication\r\n
tcp-check expect string role:slave
tcp-check send QUIT\r\n
tcp-check expect string +OK
server redis00 192.168.2.92:6379 check port 6379 inter 1s rise 2 fall 2 maxconn 50000
server redis01 192.168.2.116:6379 check port 6379 inter 1s rise 2 fall 2 maxconn 50000
server redis02 192.168.2.117:6379 check port 6379 inter 1s rise 2 fall 2 maxconn 50000
server redis03 192.168.2.118:6379 check port 6379 inter 1s rise 2 fall 2 maxconn 50000
阅读(1375) | 评论(0) | 转发(0) |