Automated MySQL failover with MHA
summary
MHA automates master failover by saving crashed master binlogs, identifying the most up‑to‑date slave, applying differential relay logs to bring others current and issuing change master so apps keep writing to the promoted node. Typical full automated failovers take 10–30 seconds inside a datacenter. It supports MySQL 5.0/5.1/5.5/5.6 and MariaDB, works without GTIDs but can use GTID and semi‑sync to reduce data loss, requires SSH access and a separate manager VM, and can hand off a VIP via Pacemaker or a catalog DB.
AI-written summary · about
chapters (13)
- 0:00Introduction to MHA
- 3:07Why MHA for MySQL failover
- 7:40What is MHA and its uses
- 14:21How MHA performs failover
- 22:11Configuring MHA for failover
- 27:54Running MHA manager and scripts
- 34:02Integrating MHA with Pacemaker
- 38:18Testing and best practices
- 42:39Alternative solutions to MHA
- 47:54MHA with GTID and future plans
- 51:27MHA 0.56 new features
- 54:23Fully automated failover pros and cons
- 57:58Q&A session
