MXS-451: Made documentation clearer about slave_selection_criteria
The documentation for readwritesplit now clearly states that only connections from MaxScale are taken into consideration when slaves are being selected.
This commit is contained in:
@ -99,11 +99,13 @@ router_options=slave_selection_criteria=<criteria>
|
|||||||
|
|
||||||
Where `<criteria>` is one of the following values.
|
Where `<criteria>` is one of the following values.
|
||||||
|
|
||||||
* `LEAST_GLOBAL_CONNECTIONS`, the slave with least connections in total
|
* `LEAST_GLOBAL_CONNECTIONS`, the slave with least connections from MaxScale
|
||||||
* `LEAST_ROUTER_CONNECTIONS`, the slave with least connections from this router
|
* `LEAST_ROUTER_CONNECTIONS`, the slave with least connections from this service
|
||||||
* `LEAST_BEHIND_MASTER`, the slave with smallest replication lag
|
* `LEAST_BEHIND_MASTER`, the slave with smallest replication lag
|
||||||
* `LEAST_CURRENT_OPERATIONS` (default), the slave with least active operations
|
* `LEAST_CURRENT_OPERATIONS` (default), the slave with least active operations
|
||||||
|
|
||||||
|
The `LEAST_GLOBAL_CONNECTIONS` and `LEAST_ROUTER_CONNECTIONS` use the connections from MaxScale to the server, not the amount of connections reported by the server itself.
|
||||||
|
|
||||||
### `max_sescmd_history`
|
### `max_sescmd_history`
|
||||||
|
|
||||||
**`max_sescmd_history`** sets a limit on how many session commands each session can execute before the session command history is disabled. The default is an unlimited number of session commands.
|
**`max_sescmd_history`** sets a limit on how many session commands each session can execute before the session command history is disabled. The default is an unlimited number of session commands.
|
||||||
|
Reference in New Issue
Block a user