Netflix / dynomite

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

Replication not working ? #634

Closed binooetomo closed 5 years ago

binooetomo commented 5 years ago

dear all

I have 2 centos7 box, each with ip address 192.168.5.81 and 192.168.5.82 Curently there is redis on each box (no clustering, no Sentinel).

Dynomite config yaml of 192.168.5.81 is :

dyn_o_mite: datacenter: ncdc-yk rack: rack-4 dyn_listen: 192.168.5.81:6371 listen: 192.168.5.81:6370 dyn_seed_provider: simple_provider dyn_seeds:

Dynomite config yaml of 192.168.5.82 is :

dyn_o_mite: datacenter: ncdc-yk rack: rack-4 dyn_listen: 192.168.5.82:6371 listen: 192.168.5.82:6370 dyn_seed_provider: simple_provider dyn_seeds:

At 192.168.5.81 try to set a key , and re-check if the key is stored

[root@ceph-node1 ~]# redis-cli -h 192.168.5.81 -p 6370 192.168.5.81:6370> set srv81:05 81:05 OK 192.168.5.81:6370> get srv81:05 "81:05"

At 192.168.5.82, try to get the key

[root@ceph-node2 dynomite]# redis-cli -h 192.168.5.82 -p 6370 192.168.5.82:6370> get srv81:05 (nil)

looks like the replication no run between the two nodes

Kindly please give me a clue to fix this problem

ipapapa commented 5 years ago

This is apparently a misconfiguration or a network problem, not a software issue. See the configuration folder for some examples: https://github.com/Netflix/dynomite/tree/dev/conf