Design a MariaDB Galera cluster across three data centers for a telecom platform
Typical situation: a telecom operator needs a provisioning and subscriber database that survives the loss of a whole site without losing committed data. MariaDB Galera Cluster is synchronous multi-primary replication, so every commit waits for certification across sites, and the design question is quorum. Three nodes in three data centers keep quorum when one site is lost, while two sites plus a small arbitrator node (garbd) is the cheaper alternative. Both MariaDB Server and the Galera library are GPL-2.0 software, so they can run unmodified in any placement. OSStend designs the topology, sets write routing so only one node takes writes, and runs the cluster co-managed in your data centers. The run model is on managed MySQL and MariaDB.
45 minutes with an engineer: we review your workload and sketch the design.
- ✓Design
- ✓MariaDB Galera
- ✓Your data center
- Topology
- 3 nodes, one per site, or 2 sites plus garbd
- Quorum
- Survives loss of one site
- Write routing
- One writer at a time through a proxy
- Where it runs
- Your data centers, co-managed
- Deliverable
- Signed design plus a site-loss drill
Typical situation
Trigger. Provisioning must survive the loss of a site with no lost commits.
Versions. MariaDB 10.11 or 11.4 LTS with the matching Galera 4 library.
- Three sites with known inter-site latency
- Commit durability across sites
- Maintenance without full outages
A typical situation, not a named customer.
A three-site MariaDB Galera design keeps quorum when one site is lost: three nodes in three data centers, or two sites plus a garbd arbitrator. Commits wait for certification, so inter-site latency sets write speed. Route writes to one node and size the gcache so a rejoining node can use IST.
Customers
Partners
- PostgreSQL
- MySQL
- MongoDB
- Redis
Valkey
- OpenSearch
- Kafka
- RabbitMQ
- AWS
- Google Cloud
- Azure
- Kubernetes
- OpenShift
- Prometheus
- Grafana
- Datadog
- Dynatrace
- Splunk
What OSStend runs and what you keep
OSStend writes the topology, runs the cluster and drills site loss. You own the sites, the network between them and the provisioning application.
| Area | OSStend | You |
|---|---|---|
| Cluster design | An engineer writes the design: size, replication model, version path, backup tool and settings. You sign it off first. | Approve the design and name the change windows. |
| Build and move | Builds the target and owns the move, with both sides live until you switch. | Point the application at the new endpoint on the agreed day. |
| Backups and recovery | Full backups plus binary logs, with point-in-time recovery and scheduled restore tests. | Say how far back you must be able to recover. |
| Failover | Detects a dead source and promotes a replica; repoints the others. | Use connection retry in the application. |
| Upgrades and patching | Minor releases and major upgrades on your change calendar. | Set the freeze dates. |
| Monitoring and on call | Replication lag, connections, InnoDB state, disk and binary log retention, with engineers on call 24/7. | Receive the alerts you want forwarded. |
| Application and schema | Advice on slow queries and indexes found during the review. | Your schema, your queries, your releases. |
| Contract | One contract, one on-call team, price quoted per design. | Own the sites and inter-site network, and keep latency within the design limits. |
Where it can run
Galera suits data centers where inter-site latency is stable. Both licences are GPL-2.0, run unmodified, so all placements are open.
| Option | When it fits | Licence and source |
|---|---|---|
| Your data center | Three sites with known latency. | MariaDB Server is GPLv2 (MariaDB Foundation, checked 23 Nov 2026); the Galera library is GPL-2.0 (GitHub, checked 23 Nov 2026). |
| Your cloud account | Three zones or regions in one cloud. | Same licences. |
| Our cloud | A hosted cluster. | Same licences. |
How we run it
The design fixes the quorum rule, write routing and rejoin path, then proves them with a drill. Galera adds one round trip per commit, so latency matters.
Measure sites (2 to 4 days)
Inter-site round-trip times, loss and bandwidth are measured, since they set commit latency.
Design and sign-off (3 to 7 days)
Node count, weights, garbd or a third node, proxy and write rules are written down.
Build (1 to 2 weeks)
The cluster is bootstrapped, TLS for Galera traffic is set and the proxy is added.
Drill (2 to 4 days)
A site is cut off, a node rejoins by IST and by SST, and a DDL runs under load.
Run (ongoing)
Engineers on call 24/7; site-loss drills repeat on a schedule.
Time ranges are typical for databases of this size and are fixed in the design you sign off. The method, the order and the checks do not change with the range.
[galera] wsrep_on=ON wsrep_provider=/usr/lib/galera/libgalera_smm.so wsrep_cluster_address=gcomm://dc1-db,dc2-db,dc3-db binlog_format=ROW default_storage_engine=InnoDB innodb_autoinc_lock_mode=2 wsrep_provider_options="gcache.size=4G"
Cost basis
Galera needs an odd node count or an arbitrator, so cost is nodes and links, not a licence. OSStend's fee is quoted per design.
No public cloud list applies to a data center build, so here is how the topology choices change what you buy.
| Topology | What you buy | Site-loss behavior |
|---|---|---|
| 3 nodes, 3 sites | Three full servers and three links | Quorum holds with 2 of 3 |
| 2 nodes plus garbd | Two servers, an arbitrator on a third site | Quorum holds if the arbitrator site survives |
| 2 nodes, 2 sites, no arbitrator | Two servers | A site loss stops writes |
| Added read node | Another full server | Weight set so it does not break quorum |
| OSStend co-management | Quoted per design | Drilled twice a year |
Licences read checked 23 Nov 2026. garbd is the Galera Arbitrator, which takes part in quorum without storing data.
What we watch on call
Galera fails in ways that look like application bugs. These are the signals we watch.
- Non-Primary state.
- A partitioned node refuses queries. Signal: wsrep_cluster_status other than Primary.
- Flow control.
- A slow node pauses the cluster. Signal: wsrep_flow_control_paused.
- SST instead of IST.
- A small gcache forces a full copy on rejoin. Signal: state transfer type in the log.
- Certification conflicts.
- Multi-writer hot rows fail with deadlock errors. Signal: wsrep_local_cert_failures.
- Large transactions and DDL.
- They stall every node. Signal: replication queue depth during schema changes.
- Split vote after a site loss.
- Even node counts. Signal: weights reviewed after any topology change.
When OSStend is not the right fit
Galera fits where synchronous commit across sites is a requirement. For asynchronous or analytical use, a source and replicas are simpler.
Contact us if
- ✓Commits must survive a site loss.
- ✓Inter-site latency is low and stable.
- ✓A single-writer routing rule is acceptable.
Not a fit if
- ✕Sites are far apart and writes are latency sensitive.
- ✕You want many concurrent writers on hot rows.
- ✕Asynchronous replicas meet your needs.
Questions buyers ask
Are MariaDB Server and Galera free to run as a service?
Both are GPL-2.0 software and run unmodified (MariaDB Foundation, Galera, checked 23 Nov 2026).
Why one writer?
Writers on the same rows cause certification conflicts that the application sees as deadlocks. One writer at a time avoids them.
Do we need three sites?
Three nodes, or two data nodes plus a garbd arbitrator on a third site, keep quorum when one site is lost.
Design your multi-site cluster with an engineer
Bring your site latencies. An engineer will propose the topology.
- ✓A design sketch for your workload, not a plan menu
- ✓A zero-downtime cutover path for what you run today
- ✓A price for that design, after the review





