skip to Main Content

In a Redis HA setup, with 1 master and 5 replicas:
Let’s suppose the master goes down. Then the Sentinels would elect a replica as the next master.

What happens when the original master is restarted with its config? Would it be joining as a master or as a replica? I suppose, since it is not configured as a replica, so it should not be running as a replica.

2

Answers


  1. When the original master is down and a new master is elected. The original master will be added as a virtual replica of the new master. When it recovers, original master will be set to be a replica of the new master automatically.

    Login or Signup to reply.
  2. Master would join as a replica.

    …The master will then demote itself to a replica…
    https://redis.io/commands/failover

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search