Skip to content

Questions about the high availability mechanism of sidecar-syncer #8649

Answered by xuriwuyun
fengbao123 asked this question in Q&A
Discussion options

You must be logged in to vote

Good questions and thank you for your attention to this matter!

Yes, the high availability in primary-replica scenarios need to take care of numerous details and handle carefully. While some information about Syncer in that article is outdated, it now runs as a side-process alongside the db, This enables Syncer to effectively manage database state, processes, and data.

In DB clusters with Syncer enabled, each pod has a heartbeat detection. If the primary pod becomes unavailable, other replicas detect this change and initiate an election process to get a new primary.

The primary election is complex and involves more than just simple lock acquisition. It must evaluate:

  • Overall cluster health

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by xuriwuyun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants