Radiator Server Documentation — v10.33.3
Table of Contents
server-selection
Selects the server-selection algorithm used when multiple MySQL server
blocks are configured. See Backend Load Balancing
for algorithm details, tie-breaking rules, pool-skip behavior, and full
examples.
Allowed values
fallback- Tries servers in priority order (default).round-robin- Distributes requests across available servers in rotation.least-connections- Routes to the server with the fewest in-use connections.no-fallback- Tries only the highest-priority available server; failures are not retried on other servers.
Default: fallback
Example
mysql "MYSQL_HA" {
server-selection fallback;
server "primary" {
host "mysql-primary.example.com";
priority 0;
# ...
}
server "replica" {
host "mysql-replica.example.com";
priority 1;
# ...
}
query "FIND_USER" { ... }
}
Table of Contents
Navigation