Document readwritesplit behavior with server states

This commit is contained in:
Markus Mäkelä 2019-04-02 15:21:18 +03:00
parent cc1b8b2d56
commit f812302d62
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19
2 changed files with 24 additions and 0 deletions

View File

@ -32,6 +32,12 @@ structures (i.e. different `--basedir` arguments). Normal use of MaxScale still
detects multiple MaxScales trying to bind to the same ports. Almost always, this
will not have any negative side-effects.
### Maintenance mode and Readwritesplit
Readwritesplit now allows open transactions to finish if the master is put into
maintenance mode. To forcefully close all connections to a server use the
`maxctrl set server <name> maintenance --force` command.
## Dropped Features
## New Features

View File

@ -22,6 +22,24 @@ resilient setup and easy master failover by using one of the Galera nodes as a
Write-Master node, where all write queries are routed, and spreading the read
load over all the nodes.
## Interaction with servers in `Maintenance` and `Draining` state
When a server that readwritesplit uses is put into maintenance mode, any ongoing
requests are allowed to finish before the connection is closed. If the server
that is put into maintenance mode is a master, open transaction are allowed to
complete before the connection is closed. Note that this means neither idle
session nor long-running transactions will be closed by readwritesplit. To
forcefully close the connections, use the following command:
```
maxctrl set server <server> maintenance --force
```
If a server is put into the `Draining` state while a connection is open, the
connection will be used normally. Whenever a new connection needs to be created,
whether that be due to a network error or when a new session being opened, only
servers that are neither `Draining` nor `Drained` will be used.
## Configuration
Readwritesplit router-specific settings are specified in the configuration file