Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Current state: Under Discussion
Keywords: HA, primary-backup, RootCoord, DataCoord, QueryCoord, IndexCoord
Released:

...

  1. 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. 
  2. Enter StandyMode. → 3, 4
  3. Watch the primary key in ETCD. When receiving a key DELETE response, → 1, campaign the lock. 
  4. 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.
  5. If it is in StandyMode. If true → 6. If false → 8.
  6. Restart: call internal Start. → 7
  7. Exit StandbyMode. It will stop the loop in 4. → 8 
  8. Register the service to ETCD as primary. → 9
  9. Start up the LivenessCheck goroutine

...