Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question about config dynomite described in wiki #820

Open
artarik opened this issue May 24, 2023 · 1 comment
Open

question about config dynomite described in wiki #820

artarik opened this issue May 24, 2023 · 1 comment

Comments

@artarik
Copy link

artarik commented May 24, 2023

Hello i have a Misunderstanding about how to configure dynomite fo replicating between two dc
i have a redis server which work as master-slave and controlled by sentinells.
My clients can only configuring with single FLOAT IP:PORT which attach on master-redis via keepalived
I need to add a new dc with same config
So as i understand it i need to use thist config
Does it mean that i need run 4 replicas of dynomite (2 in each dc) and for dc1 use this config and for dc2 this?

if that which ip-address i need to use for communications betwen dc? Does i need add config of second node in field dyn_seeds which placed in the same rack?

@artarik
Copy link
Author

artarik commented May 24, 2023

also i have a problem with replication between 2 nodes in one dc. like this issue
my dynomite config
1 node:

dyn_o_mite:
  datacenter: dc1
  rack: rack1
  dyn_listen: 0.0.0.0:8101
  dyn_seeds:
  - 10.7.10.75:8101:rack2:dc1:0
  listen: 0.0.0.0:16379
  servers:
    - 127.0.0.1:6379:1
  tokens: 0
  secure_server_option: datacenter
  pem_key_file: /etc/ssl/dynamo.pem
  data_store: 0
  stats_listen: 127.0.0.1:22222
  server_retry_timeout: 10000
  read_consistency: DC_ONE
  write_consistency: DC_ONE
  mbuf_size: 16384
  max_msgs: 200000

node-2

dyn_o_mite:
  datacenter: dc1
  rack: rack1
  dyn_listen: 0.0.0.0:8101
  dyn_seeds:
  - 10.7.10.75:8101:rack2:dc1:0
  listen: 0.0.0.0:16379
  servers:
    - 127.0.0.1:6379:1
  tokens: 0
  secure_server_option: datacenter
  pem_key_file: /etc/ssl/dynamo.pem
  data_store: 0
  stats_listen: 127.0.0.1:22222
  server_retry_timeout: 10000
  read_consistency: DC_ONE
  write_consistency: DC_ONE
  mbuf_size: 16384
  max_msgs: 200000

If i stop redis on node 2 and adding some keys in node1 they are not copied on node 2 after i start redis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant