Redis Cluster does not promote Slave to control when the wizard is down

I am running 4 node REDIS CLUSTER in a Windows 2012 window.

My setup is 1 Master and 3 Slaves. When I finish the master service through the Services component, not one of my subordinates auto-replicates itself. How can I make Slaves recognize Master, and it promotes them as soon as they see a failure. Below is my Redis Config. This is the same configuration file for all nodes, the only difference is that the port is changed for each node

port 30002 cluster-enabled yes cluster-config-file nodes.conf appendonly yes loglevel notice logfile "log" syslog-enabled yes syslog-ident redis maxmemory 200mb maxmemory-policy volatile-ttl

Edit

What other information do I need to provide to facilitate its removal.

Edit 2

- redis, , 1 3 . , , 1 Master 3 slave , REDIS Sentinel. , , , .

  • 4 (A, B, C, D)
  • REDIS 64 msi
  • A, B, C, D , ,
  • redis A, B, C, D
  • Redis Meetup A, B, C, D
  • A B, C, D
  • redis A

voila FOLDER A, , B, C, D - A. , A , (B, C, D) .

redis.conf

port 30001 cluster-enabled yes cluster-config-file nodes.conf appendonly yes loglevel notice logfile "log" syslog-enabled yes syslog-ident redis maxmemory 200mb maxmemory-policy volatile-ttl

sc stop redismasteralpha

05a73c800cccfd8b11d33232887570c52a326afe 10.144.62.3:30002 slave 20be3e69195744aa379124d19a836650c72c23ba 0 1478637832268 5 connected
20be3e69195744aa379124d19a836650c72c23ba 10.144.62.3:30001 master - 0 1478637837736 5 connected 0-16383
d60d3d0a9f12ef37c997fe44389996d8c7f19c2c 10.144.62.3:30000 myself,slave 20be3e69195744aa379124d19a836650c72c23ba 0 0 1 connected
fda22db5ed5d25e2a8fba82122b47818fba248ce 10.144.62.3:30003 slave 20be3e69195744aa379124d19a836650c72c23ba 0 1478637836644 5 connected

05a73c800cccfd8b11d33232887570c52a326afe 10.144.62.3:30002 myself,slave 20be3e69195744aa379124d19a836650c72c23ba 0 0 3 connected
d60d3d0a9f12ef37c997fe44389996d8c7f19c2c 10.144.62.3:30000 slave,fail 20be3e69195744aa379124d19a836650c72c23ba 1478637948956 1478637947808 5 disconnected
fda22db5ed5d25e2a8fba82122b47818fba248ce 10.144.62.3:30003 slave 20be3e69195744aa379124d19a836650c72c23ba 0 1478638078833 5 connected
20be3e69195744aa379124d19a836650c72c23ba 10.144.62.3:30001 master,fail? - 1478638034799 1478638031628 5 connected 0-16383

master,fail ,

cluster_state:fail

cluster_slots_assigned:16384

cluster_slots_ok:0

cluster_slots_pfail:16384

cluster_slots_fail:0

cluster_known_nodes:4

cluster_size:1

cluster_current_epoch:5

cluster_my_epoch:5

cluster_stats_messages_sent:1075189

cluster_stats_messages_received: 930887

+4
1

, redis cluster 3 .

redis cluster tutorial:

, , , . .

+2

Source: https://habr.com/ru/post/1659625/


All Articles