redis dynomite无法实现ha配置和测试

vuv7lop3  于 2021-06-09  发布在  Redis
关注(0)|答案(0)|浏览(266)

我用redis dynomite创建了一个集群,配置如下。
服务器配置dyn.yml

dyn_o_mite:
  datacenter: dc-b
  rack: rack1
  dyn_listen: x.x.x.152:7379
  dyn_seeds:
  - x.x.x.152:7380:rack1:dc-a:2147483647
  - y.y.y.69:7379:rack1:dc-b:0
  - y.y.y.69:7380:rack1:dc-b:2147483647
  listen: 0.0.0.0:8379
  servers:
  - 127.0.0.1:22122:1
  tokens: '0'
  secure_server_option: datacenter
  pem_key_file: /conf/dynomite.pem
  data_store: 0
  stats_listen: 127.0.0.1:22222
  read_consistency : DC_QUORUM
  write_consistency : DC_QUORUM

dyn_o_mite:
  datacenter: dc-b
  rack: rack1
  dyn_listen: x.x.x.152:7380
  dyn_seeds:
  - x.x.x.152:7379:rack1:dc-a:0
  - y.y.y.69:7379:rack1:dc-b:0
  - y.y.y.69:7380:rack1:dc-b:2147483647
  listen: 0.0.0.0:8380
  servers:
  - 127.0.0.1:22123:1
  tokens: '2147483647'
  secure_server_option: datacenter
  pem_key_file: /conf/dynomite.pem
  data_store: 0
  stats_listen: 127.0.0.1:22223
  read_consistency : DC_QUORUM
  write_consistency : DC_QUORUM

服务器配置dyn.yml

dyn_o_mite:
  datacenter: dc-a
  rack: rack1
  dyn_listen: y.y.y.69:7379
  dyn_seeds:
  - y.y.y.69:7380:rack1:dc-a:2147483647
  - x.x.x.152:7379:rack1:dc-b:0
  - x.x.x.152:7380:rack1:dc-b:2147483647
  listen: 0.0.0.0:8379
  servers:
  - 127.0.0.1:22122:1
  tokens: '0'
  secure_server_option: datacenter
  pem_key_file: /conf/dynomite.pem
  data_store: 0
  stats_listen: 127.0.0.1:22222
  read_consistency : DC_QUORUM
  write_consistency : DC_QUORUM

dyn_o_mite:
  datacenter: dc-a
  rack: rack1
  dyn_listen: y.y.y.69:7380
  dyn_seeds:
  - y.y.y.69:7379:rack1:dc-a:0
  - x.x.x.152:7379:rack1:dc-b:0
  - x.x.x.152:7380:rack1:dc-b:2147483647
  listen: 0.0.0.0:8380
  servers:
  - 127.0.0.1:22123:1
  tokens: '2147483647'
  secure_server_option: datacenter
  pem_key_file: /conf/dynomite.pem
  data_store: 0
  stats_listen: 127.0.0.1:22223
  read_consistency : DC_QUORUM
  write_consistency : DC_QUORUM

在这里,我可以在所有节点都启动时获得复制。但无法实现ha。

实现ha的步骤

Steps im following to achieve HA
making x.x.x.152:22122 x.x.x.152:22123 down (making serverA redis-server nodes down).
feeding to y.y.y.69:8380 and y.y.y.69:8379 as key value pair(using serverB redis-server nodes to feed data to redis cluster )
making x.x.x.152:22122 x.x.x.152:22123 Up.(making serverA redis-server nudes up)
checking feeded data in x.x.x.152:8380 and x.x.x.152:8379(trying to retrieve serverB feeded data in serverA redis nodes.)

但无法检索相同的。请帮我这个。谢谢!!
链接:https://github.com/netflix/dynomite/issues/770

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题