Database Topic Archive

MariaDB Articles

Galera clustering, InnoDB and Aria internals, replication, optimizer behavior, and MariaDB operations notes.

MariaDB JSON Is LONGTEXT in a Trench Coat: Production Implications
7 min read

The JSON keyword in MariaDB is a compatibility alias over LONGTEXT. It migrates schemas cleanly, then surprises you at scale: full parses per row, whole-document rewrites per update, and equality semantics that differ from MySQL.

MariaDB Galera Quorum and Split Brain: Why Two Nodes Is a Trap
9 min read

A two-node Galera cluster survives fewer failures than a single node. Here is the quorum arithmetic behind that, how garbd breaks ties, what a non-primary component actually does to your writes, and how to bootstrap safely after a full outage.

MariaDB Galera IST vs SST: Why a Node Rejoin Takes Seconds or Hours
7 min read

A Galera node rejoin either streams a small delta (IST) or copies the entire dataset (SST), and whether any donor's gcache still holds the joiner's missing writesets decides which. Here is how the decision is made, how to size for…

MariaDB Galera gcache Sizing: Keep IST Cheap and Avoid Full SST
8 min read

gcache.size is the difference between a node rejoining in three minutes via IST and a two-hour full SST that hammers the donor. Here is how the ring buffer works, how to size it from wsrep_replicated_bytes, and how to verify the…

MariaDB Encryption at Rest: Operations, Key Rotation, and Trade-Offs
7 min read

The audit checkbox says 'encrypt data at rest'; the operations reality is key custody, background rotation threads, a binlog that stays plaintext until you say otherwise, and a recovery plan that dies with the key file. The honest field guide.

MaxScale Read/Write Splitting for MariaDB: A Field Guide
7 min read

MaxScale's readwritesplit router gives your application one endpoint and spreads reads across replicas. Here is how routing decisions are made, where session state bites, and how failover coordination works.