Building a Highly Available MySQL 8 InnoDB Cluster
A 3-node Group Replication cluster with MySQL Router, tested end-to-end for automatic failover and manual switchover By Munish Kumar Karna | Oracle DBA Over the past few days I set up and stress-tested a production-style MySQL 8.0 InnoDB Cluster from scratch — 3 database nodes running Group Replication behind MySQL Router, with a full failover and switchover drill at the end. Sharing the walkthrough here in case it helps anyone building HA MySQL on-prem or in a private cloud. Architecture Three MySQL 8.0.46 nodes in single-primary Group Replication, fronted by MySQL Router for transparent read/write and read-only routing: Node IP Address (example) mysql01 10.0.10.11 mysql02 10.0.10.12 mysql03 10.0.10.13 mysqlrouter 10.0.10.20 1. Host Prep & Firewall Configured /etc/hosts on all three nodes for name resolution, verified with ping and getent hosts Installed MySQL 8.0 Server + MySQL Shell ( mysqlsh ) on all nodes Opened the required ports: 3306 (MySQL...