Netflix / dynomite

A generic dynamo implementation for different k-v storage engines
Apache License 2.0
4.2k stars 531 forks source link

Replication in Dynomite #761

Open mforti opened 4 years ago

mforti commented 4 years ago

In our company, we will use dynomite in production, where we will have two data centers, each with 3 redis servers. Our initial configuration was made with 1 rack for redis server, with a token equal to 4294967295 in all dyn_seeds declared in both data centers( 3 racks/ 3 redis for dc). However, we noticed that data is not always being replicated on all servers. Could you give an example of configuration for our need?

My configuration is like this, from all nodes (6) dyn_o_mite: datacenter: sp dyn_listen: 0.0.0.0:9101 dyn_seed_provider: simple_provider dyn_seeds:

10.xx.106.xx:9101:rack-v1:rj:4294967295
10.xx.106.xx:9101:rack-v2:rj:4294967295
10.xx.106.xx:9101:rack-v3:rj:4294967295
10.xx.109.xx:9101:rack-v2:sp:4294967295
10.xx.109.xx:9101:rack-v3:sp:4294967295
listen: 0.0.0.0:9102
servers:
127.0.0.1:6379:1
timeout: 15000
tokens: '4294967295'
rack: rack-v1
env: network
data_store: 0
ipapapa commented 4 years ago

There are several exemplar YAML configurations in this folder.