Retrying Failed Reads with MaxScale's Read/Write Split Router
The Read/Write Split Router (readwritesplit) routes write queries to the primary server and load balances read-only queries between one or more replica servers. If a read-only query fails, then the router can retry the query on a different server.
Configuring Retries for Failed Reads
Configure retries for failed reads by configuring the
retry_failed_reads
parameter for the Read/Write Split Router inmaxscale.cnf
.
For example:
[split-router]
type = service
router = readwritesplit
...
retry_failed_reads = true
Restart the MaxScale instance.
$ sudo systemctl restart maxscale
This page is: Copyright © 2025 MariaDB. All rights reserved.
PreviousReplaying Transactions with MaxScale's Read/Write Split RouterNextRouting Statements with MaxScale's Read/Write Split Router
Last updated
Was this helpful?