Current state: Under Discussion
Keywords: HA, primary-backup, RootCoord, DataCoord, QueryCoord, IndexCoord
Released:
...
- Try lock the key in etcd. If succeed, this node will become the primary. → 5. If fail which means there is another node hold the lock. → 2.
- Enter StandyMode. → 3, 4
- Watch the primary key in ETCD. When receiving a key DELETE response, → 1, campaign the lock.
- Start a loop goroutine to print log and do WarmUp(). WarmUp is to do something like update the meta to accurate the Restart if necessary.
- If it is in StandyMode. If true → 6. If false → 8.
- Restart: call internal Start. → 7
- Exit StandbyMode. It will stop the loop in 4. → 8
- Register the service to ETCD as primary. → 9
- Start up the LivenessCheck goroutine
...