MariaDB Galera

MariaDB Galera is a multi-primary database cluster solution for synchronous replication and high availability.

  • Databases
MariaDB Galera is a multi-primary database cluster solution for synchronous replication and high availability.

Platform availability

Available on 1 of 10 platforms

  • Unraid (not listed)
  • TrueNAS (not listed)
  • Umbrel (not listed)
  • ZimaOS (not listed)
  • Proxmox (not listed)
  • Helm
  • Mac (not listed)
  • Windows (not listed)
  • Linux (not listed)
  • Any server (not listed)

Health score?A 0-100 score computed nightly from four factors: maintained (40%: recent commits and steady activity), popular (25%: GitHub stars, log scale), easy to install (20%: platforms, install notes, setup guides, Docker image) and light to run (15%: minimum RAM, ARM support). When the source code has been checked, a fifth factor, security check (20%: automated scan for committed secrets, unsafe desktop-app settings, known-vulnerable dependencies and project hygiene; any serious finding caps it at 20), is added. Factors without data are left out and the rest are rescaled.

56/100 Fair

Maintained
60last commit 178 days ago
Popular
54498 GitHub stars
Easy to install
251 install platform, install notes
Light to run
502 GB minimum RAM
Security check
85no serious findings, tests

Availability: platform listings confirmed today

GitHub stars
498
Open issues
256
Last commit
2026-05-27
License
GPL-2.0
Activity
stale

Checked 14 days ago - source: GitHub (mariadb-corporation/galera)

Resources & Compatibility

Minimum requirements: 2 GB RAM.

Checked 40 days ago - source: Docker Hub image tags and published docs

First-install notes

  • Set the root password before first start Set MARIADB_ROOT_PASSWORD in your Docker run or compose file before the container starts for the first time, and optionally set MARIADB_DATABASE, MARIADB_USER, and MARIADB_PASSWORD to create a starter database and login. The root password creates the main administrator account during one-time setup; without it, MariaDB may fail to finish starting. source
  • Map port 3306 if you need access Use -p 3306:3306 to expose the MariaDB client port, which is the port database programs use to connect. Without it, apps or devices outside the container cannot log in to the database. source
  • Keep database files in a volume Mount a persistent volume to /var/lib/mysql, the folder where MariaDB stores your databases, tables, and settings. If you skip this, your data can be lost when the container is removed or recreated. source

Fetched 40 days ago - each note links to its source

Alternatives (9)

  • Apache Cassandra
  • CockroachDB - CockroachDB is a distributed SQL database for developers and operators of transactional applications that need horizontal scaling and resil…
  • CouchDB - CouchDB is a document-oriented NoSQL database with a RESTful HTTP/JSON interface for storing, querying, and synchronising JSON documents ac…
  • IBM DB2 - DB2 offers industry leading performance, scale, and reliability on your choice of platform from Linux to z/OS.
  • Microsoft SQL Server - SQL Server delivers on Microsoft’s Data Platform vision by helping your organization manage your data by enabling you to store data from st…
  • MongoDB - MongoDB is an open-source, document-oriented NoSQL database that stores flexible, JSON-like documents, helping developers and self-hosters…
  • PostgreSQL - PostgreSQL (Postgres) is an open source object-relational database known for reliability and data integrity.
  • SQLite - SQLite is a lightweight, embedded relational database engine that stores an entire database in a single file on your device.
  • mariadb - MariaDB is a fast, open-source relational database server forked from MySQL by its original developers.

Checked 40 days ago - source: AlternativeTo

Common questions

How many MariaDB Galera nodes should I run, and how should I place them?

Use an odd number of nodes to avoid split-brain. Avoid placing two of three VMs on the same host, because if that host fails the database on the other host may become inaccessible.

What initialization mistake should I avoid when setting up a Galera cluster?

Properly initialize the environment before bringing nodes into the cluster. Accidentally re-initializing the databases is a known Galera caveat.

What common setup issues should I check if Galera won't start or join?

Setup failures have involved SELinux, open ports, separate VMs, cache deletion, and version downgrades.

How can I replicate from a Galera cluster to a non-clustered server for backups or reporting?

Use a tool designed to read from the Galera cluster's binary log and apply the changes to the non-clustered replica.

Is Galera guaranteed to stay available in the community edition?

Community discussion points to uncertainty over MariaDB's future commitment to keeping Galera available in the community edition.

Answers sourced from forums.theregister.com, runebook.dev, stackoverflow.com, www.reddit.com, www.reddit.com

Community

Collected 48 days ago - public community threads