Load Balancing
This page is part of MariaDB's Documentation.
The parent of this page is: Use Cases
Topics on this page:
Overview
MariaDB database products optimize responsiveness to workloads by leveraging MariaDB MaxScale for transparent load balancing.
Load Balancing Solutions
MariaDB database products support load balancing with several different multi-node solutions.
MariaDB Replication
MariaDB Replication supports load balancing reads.
Replica servers replicate data from a primary server asynchronously or semi-synchronously using binary logs.
Galera Cluster
supports load balancing reads.
Cluster nodes replicate data using certification-based replication implemented by the Galera 3 or Galera 4 plugin, depending on the version of MariaDB.
MariaDB Enterprise ColumnStore
MariaDB Enterprise ColumnStore supports load balancing reads in multi-node deployments.
Load Balancing with MaxScale
MariaDB MaxScale provides multiple load balancing options.
Query-Based Load Balancing
Read/Write Split Router (readwritesplit) provides query-based load balancing with advanced features:
Query-based routing, so that replica servers can be properly utilized.
Automatic primary server re-connection in case of server failure.
Automatic transaction replay in case of server failure or deadlock.
Maintenance of connection state on behalf of applications.
Causal reads to ensure consistent read-your-writes behavior.
Adaptive query-based load balancing to optimize the routing of traffic to the fastest database instance based on actual server load conditions.
Retries of failed reads to ensure that the client is not affected by server failures.
Delayed retries of failed queries to ensure that the client is not affected by temporary cluster failures.
Connection-Based Load Balancing
Read Connection Router (readconnroute) provides connection-based load balancing:
Multi-node Solution | Description |
---|
Deploy MariaDB Enterprise Server with Load Balancing
Choose a multi-node solution to deploy for MariaDB Enterprise Server:
HA Solution | ES Deployment |
Deploy MariaDB Community Server with Load Balancing
Choose a multi-node solution to deploy for MariaDB Community Server:
Multi-node Solution | ES Deployment | MaxScale Deployment |