You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have two rack(rack1 rack2) and each have six node,each node have one redis service on backend.
my client set & read data with phpredis extension.
test case 1:
rack1 & rack2 all up, random set & get data to all node, all is ok,no problem.
test case 2:
rack1 up , rack 2 some node down, backend redis up,random set & get data all rack1 node(avoid all rack 2 node),still no problem.
but rack1 and rack2 node data is diffent.
teste case 3:
rack1 up,resume rack 2 down node,random get data to all node, some test case 2 set data is missing.
my question:
fail node resume, rack1 and rack2 node data is diffent,How can avoid to get some key is missing?
The reason that you have multi-rack deployment is for failover. Evidently, there will be cases that the two racks may be out of sync. If you do not have a lot of writes, you can stop the writes on that database, and quickly sync up the nodes using the persistence feature in Redis: redis-cli bgrewriteaof. We are also working on a scalable approach.
I have two rack(rack1 rack2) and each have six node,each node have one redis service on backend.
my client set & read data with phpredis extension.
test case 1:
rack1 & rack2 all up, random set & get data to all node, all is ok,no problem.
test case 2:
rack1 up , rack 2 some node down, backend redis up,random set & get data all rack1 node(avoid all rack 2 node),still no problem.
but rack1 and rack2 node data is diffent.
teste case 3:
rack1 up,resume rack 2 down node,random get data to all node, some test case 2 set data is missing.
my question:
fail node resume, rack1 and rack2 node data is diffent,How can avoid to get some key is missing?
my config
node 1:
dyn_o_mite:
datacenter: default_dc
dyn_listen: 0.0.0.0:8101
dyn_port: 8101
dyn_seed_provider: simple_provider
dyn_seeds:
gos_interval: '500'
listen: 0.0.0.0:6379
rack: rc0
redis: 'true'
servers:
timeout: 150000
tokens: '400517191'
node 2:
dyn_o_mite:
datacenter: default_dc
dyn_listen: 0.0.0.0:8101
dyn_port: 8101
dyn_seed_provider: simple_provider
dyn_seeds:
gos_interval: '500'
listen: 0.0.0.0:6379
rack: rc0
redis: 'true'
servers:
timeout: 150000
tokens: '3346660200'
.....
node 6
dyn_o_mite:
datacenter: default_dc
dyn_listen: 0.0.0.0:8101
dyn_port: 8101
dyn_seed_provider: simple_provider
dyn_seeds:
gos_interval: '500'
listen: 0.0.0.0:6379
rack: rc1
redis: 'true'
servers:
timeout: 150000
tokens: '2565460974'
The text was updated successfully, but these errors were encountered: