Updated readwritesplit default values

The combination of only one slave being used and the slave_selection_criteria
being LEAST_CURRENT_OPERATIONS can possibly cause a connection pileup on one
slave server. This would skew the query distribution heavily towards the first
available slave even if multiple slave were being used.

Having the maximum number of slave servers to be equal to the total amount of
available slaves allows for a more even and responsive distribution of the
query traffic.
This commit is contained in:
Markus Makela
2015-11-19 18:28:29 +02:00
parent b8d1859f8b
commit 1840937585

View File

@ -52,7 +52,7 @@ passwd=<password>
### `max_slave_connections`
**`max_slave_connections`** sets the maximum number of slaves a router session uses at any moment. Default value is `1`.
**`max_slave_connections`** sets the maximum number of slaves a router session uses at any moment. The default is to use all available slaves.
max_slave_connections=<max. number, or % of available slaves>