# MariaDB Galera

MariaDB Galera is a multi-primary database cluster solution for synchronous replication and high availability. It is open source and self-hosted, installable on Kubernetes (Helm).

Canonical page: https://ourlocalhost.com/app/4730/mariadb-galera

## Description

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

## Platform availability

Available on 1 of 10 platforms: Helm.

## Health score

56/100 (Fair), based on 5 of 5 factors.
- Maintained: 60 (last commit 178 days ago)
- Popular: 54 (498 GitHub stars)
- Easy to install: 25 (1 install platform, install notes)
- Light to run: 50 (2 GB minimum RAM)
- Security check: 85 (no serious findings, tests)

## Links

- GitHub: https://github.com/mariadb-corporation/galera
- Documentation: https://github.com/mariadb/mariadb-docker
- Kubernetes (Helm): https://artifacthub.io/packages/helm/bitnami/mariadb-galera

## 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.

## Alternatives

- 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.

---
Source: Our Local Host (https://ourlocalhost.com/app/4730/mariadb-galera), the self-hosted and open-source app directory.
