What is MySQL InnoDB Cluster?
MySQL InnoDB Cluster is the native MySQL high-availability stack, built on Group Replication: a group of nodes that replicate synchronously, elect a primary automatically, and fail over without manual intervention. This template runs three nodes and a one-shot init that configures the recovery accounts and forms the group.
Group Replication is the fiddliest topology in this catalogue - it depends on stable inter-node addressing (each node’s group address, the seeds list, and the IP allowlist) and is sensitive to node-identity changes. The nodes are configured with the loose- option prefix so they boot cleanly before the plugin loads, and the init is idempotent. It was smoke-tested locally to a three-member ONLINE group.
This template ships no MySQL Router (its 8.4 image is not published on Docker Hub), so apps connect to a node directly or you add a Router alongside. For simpler synchronous HA, percona-xtradb-cluster and mariadb-galera are easier to operate.
What you get
- Native MySQL Group Replication (the InnoDB Cluster engine)
- Automatic primary election and failover
- 3 nodes + a one-shot group-forming init
- Single-primary mode (one writer, two in sync)
- All internal-only; no Router bundled (connect direct)
- GPLv2
How it runs on Lyngbak
| Service | Role | Public |
|---|---|---|
mysql-gr-1/2/3 | Group Replication members (:3306) | no (internal) |
mysql-init | forms the group once, then exits | no |
Before you deploy
MYSQL_ROOT_PASSWORDroot password (same on all nodes)
MYSQL_REPLICATION_PASSWORDGroup Replication recovery account
Sizing and billing
1 GiB per node minimum; raise for write throughput. Experimental: Group Replication needs stable addressing and careful operation - PXC or Galera are simpler if you just want synchronous HA.
A resource is a flat monthly price, with RAM and disk add-ons when the stack needs a little more than a tier, and room for your own apps on a larger one. On Usage Billing each service takes the smallest size that fits it and is billed by the second it runs, so a stopped stack stops costing CPU and RAM. Its 29.3 GiB of volumes cost $0.15 per GiB a month ($4.40/mo) for as long as they exist. One workspace can use both. See pricing
Compared with the managed service
| Service | Plan | Price | Includes |
|---|---|---|---|
| AWS RDS | Multi-AZ | $30/mo | standby instance roughly doubles the bill, smallest size |
Managed MySQL HA bills the standby instance and per AZ; the 3-node group here is one stack, billed for the compute it reserves. Prices from each vendor's pricing page, June 2026.
Run it locally first
The same compose file runs with plain Docker Compose. Clone the template source, copy .env.example to .env, and run docker compose up -d.
Questions
How is this different from Percona XtraDB Cluster?
Both give synchronous, automatic-failover HA. This uses MySQL’s own Group Replication (the InnoDB Cluster engine) in single-primary mode; PXC and mariadb-galera use Galera multi-primary. Group Replication is the native MySQL stack but the most operationally sensitive of the three.
Why no MySQL Router?
The MySQL Router 8.4 image is not published on Docker Hub, so this template omits it - apps connect to a node directly (discover the primary from performance_schema.replication_group_members) or you run a Router alongside. The group itself provides the HA.
Why experimental?
Group Replication depends on stable inter-node addresses and is sensitive to identity changes on a per-pod platform. It is wired with the loose- option prefix and an idempotent init, and was smoke-tested to a 3-member ONLINE group, but it needs more operational care than the other HA templates.