Wiki: Orchestrator: MySQL high availability and management
For agents: Markdown version · Wiki index · Explore
- Speaker: Shlomi Noach
- Event: Reversim Summit 2017
- Video: https://www.youtube.com/watch?v=dd4p8V8C1Ak
- Transcript: /transcripts/2017/25-dd4p8V8C1Ak.md
- Language: Hebrew · Type: talk · Level: advanced
- Topics: Databases, Distributed Systems, Scalability, Open Source
Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.
Summary
The speaker introduces Orchestrator, an open-source tool for managing MySQL replication topologies, performing refactoring, and handling high availability. The presentation highlights how Orchestrator differs from traditional tools by using holistic failure detection based on replica feedback rather than single-node pings, avoiding static configuration files, and prioritizing minimal capacity loss during failovers. Additionally, the speaker explains how the tool relies on the Raft consensus protocol to prevent split-brain scenarios in distributed environments. Listeners learn about robust strategies for database high availability and the philosophy of keeping infrastructure tools decoupled from specific company environments.
Key points
- 0:10 The speaker introduces Orchestrator, an open-source tool designed for MySQL replication topology management, refactoring, and high availability.
- 1:26 While the tool provides a helpful GUI, it also offers an HTTP API and command-line client frequently used with automation scripts and ChatOps.
- 2:32 Traditional single-node failure detection often leads to false positives, whereas Orchestrator takes a holistic approach by checking replica statuses.
- 3:32 Orchestrator is state-based rather than configuration-based, eliminating the need to constantly update static files as servers move in production.
- 4:40 Promoting the most up-to-date replica during a failure is an anti-pattern because it can severely degrade overall server capacity.
- 5:46 Orchestrator uses the Raft consensus protocol to determine leadership and prevent split-brain issues across different data centers.
- 6:58 The speaker chose to keep Orchestrator decoupled from company-specific infrastructure to ensure it remains a generic and widely adopted open-source product.
- 8:00 Orchestrator deliberately avoids handling replica bootstrapping and backups, leaving those responsibilities to external infrastructure and backup solutions.
Takeaways
- Base failure detection on holistic cluster feedback rather than single-node pings to drastically reduce false positives.
- Avoid promoting the most up-to-date replica automatically during failover to prevent major capacity losses.
- Decouple generic open-source management tools from proprietary company infrastructure to ensure better maintainability and community adoption.
Questions this talk answers
- How does Orchestrator detect database failures without generating false positives?
- What strategy does Orchestrator use to select the best replica for promotion during a failover?
- How does Orchestrator handle distributed consensus to prevent split-brain scenarios across data centers?
Technologies
MySQL, Raft, Amazon S3
Tags
database replication, distributed systems, failover, high availability, mysql, open source, raft protocol