Questions about the high availability mechanism of sidecar-syncer #8649
-
Hey Team,
Currently, there is a lack of detailed documentation on high availability mechanisms for MySQL in such scenarios. As a result, it is unclear whether its data consistency and high availability mechanisms meet production requirements. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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:
During a switchover, if the primary fails to demote properly, the process pauses. It then waits for the primary to become ready for switchover until either success is achieved or manual cancellation occurs. After a successful switchover/failover, the former primary automatically recovers as a secondary node. Syncer has been widely adopted across various use cases. Please contact us if you have any interest! |
Beta Was this translation helpful? Give feedback.
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: