For the complete documentation index, see llms.txt. This page is also available as Markdown.

MariaDB Platform

MariaDB Enterprise Server with MaxScale, Galera Cluster, ColumnStore, Exa, and GridGain caching, tested together and supported as one open platform.

The shop outgrew its first server. During last month's sale, product pages sent thousands of reads a minute to the one machine that also took every order, and checkout slowed while the catalog loaded. A week later that server rebooted for a kernel update, and for four minutes nobody could buy anything. Both problems trace back to the same cause, because the Python script from the landing page talks to exactly one server.

More servers fix the load, and replicas give you a copy to fall back on. The hard part is the application. It shouldn't need to know which server is the primary today, or which replica is free. MariaDB Enterprise Platform is how teams run this stage themselves: MariaDB Enterprise Server plus a set of components that MariaDB tests together and supports as one product. The first component most teams add is MariaDB MaxScale, a database proxy that sits between the application and the servers.

Request path in MariaDB Enterprise Platform. Your application connects through a MariaDB connector to MaxScale on port 4006. MaxScale's read/write split service sends writes to the primary server and reads to the replicas, and its monitor tracks which server is primary. The primary replicates to two replicas. MariaDB Enterprise Manager watches every component from outside the query path.
The application only ever sees port 4006, so servers can join, fail, or change roles without a code change.

MaxScale runs two modules that do the work. The mariadbmon monitor checks every server every few seconds and knows which one is the primary. The readwritesplit router uses that knowledge to send each INSERT or UPDATE to the primary and spread each SELECT across the replicas. MariaDB Enterprise Manager stays outside the query path, so it watches the whole deployment without adding a hop to any request.

Put MaxScale in Front

The steps below build the first node of that diagram on Debian or Ubuntu: one MariaDB Enterprise Server with MaxScale in front of it. On RHEL, Rocky Linux, or AlmaLinux, the package names differ: run sudo dnf install MariaDB-server MariaDB-backup in place of the two apt commands, then sudo systemctl enable --now mariadb, because the RPM packages don't start the server. The replicas come later, without a change to the application.

1

Install MariaDB Enterprise Server

Copy your Customer Download Token from the customer download page. The mariadb_es_repo_setup script uses the token to configure the MariaDB Enterprise Server, MaxScale, and Enterprise Tools repositories in one pass.

MariaDB Package Repository Setup and Usage shows how to verify the script's checksum before you run it, and lists the other options it takes.

2

Configure MaxScale

Install MaxScale from the repository that the script configured with sudo apt install maxscale. MaxScale needs its own database account to monitor the server and read user accounts, so open the mariadb client with sudo mariadb and create one:

The broad grant keeps the test setup short. Now replace the contents of the /etc/maxscale.cnf file with a description of the deployment. The packaged file already defines example sections, and duplicate section names stop MaxScale from starting. The new file names the server, attaches the mariadbmon monitor to it, builds a readwritesplit service on that monitor, and opens a listener on port 4006 for the application:

The MaxScale beginner guide explains each section and shows how to add replicas to the deployment.

3

Check the Topology

Start MaxScale, then ask the maxctrl command-line client which servers it tracks. The last command sends a query through port 4006 to prove the path works end to end.

The server1 row should show the state Master, Running. If it shows Down, the log at /var/log/maxscale/maxscale.log says why. Point the shop's Python script at port 4006, with an account whose host pattern allows connections from MaxScale, and the application is done changing. The ReadWriteSplit router reference covers how reads move to replicas once you add them.

The next sale still sends thousands of product reads, but now each new replica takes a share of them, and the shop's code never learns their names.

The other components wait until the shop needs them. When a replica that lags a second behind isn't acceptable, because two warehouses update the same stock counts, you reach for Galera Cluster, where a commit returns only after every node in the cluster has received the write. When the Monday revenue report starts to slow checkout, you add a MariaDB ColumnStore table, and when that history outgrows one server, MariaDB Exa spreads it across a cluster (the Analytics page follows that path). When the product catalog takes more reads than replicas can serve fast enough, GridGain keeps hot data in memory as the in-memory caching layer. When the number of servers passes what one person can watch by hand, MariaDB Enterprise Manager puts every server and MaxScale instance in one console. When the shop moves to Kubernetes, the MariaDB Enterprise Kubernetes Operator runs MariaDB Enterprise Server and MaxScale as custom resources. The platform overview shows how the core components connect.

Keep Going

This page is: Copyright © 2026 MariaDB. All rights reserved.

spinner

Last updated

Was this helpful?