MXS-1494: Add replication credentials to mysqlmon
The credentials used for slave servers can now be controlled with the replication_user and replication_password parameters.
This commit is contained in:
@ -230,6 +230,9 @@ error is logged and the failover functionality is disabled. If this happens, the
|
||||
cluster must be fixed manually and the failover needs to be re-enabled via the
|
||||
REST API or MaxAdmin.
|
||||
|
||||
**Note:** The monitor user must have the SUPER privilege if the failover feature
|
||||
is enabled.
|
||||
|
||||
### `failover_script`
|
||||
|
||||
*NOTE* By default, MariaDB MaxScale uses the MariaDB provided failover
|
||||
@ -296,6 +299,9 @@ path for making `server4` the new master would be:
|
||||
/v1/maxscale/mysqlmon/switchover?Cluster1&server4&server2
|
||||
```
|
||||
|
||||
**Note:** The monitor user must have the SUPER privilege if the switchover
|
||||
feature is enabled.
|
||||
|
||||
### `switchover_script`
|
||||
|
||||
*NOTE* By default, MariaDB MaxScale uses the MariaDB provided switchover
|
||||
@ -331,6 +337,27 @@ If no successful switchover takes place within the configured time period,
|
||||
a message is logged and the failover (not switchover) functionality will not
|
||||
be enabled, even if it was enabled before the switchover attempt.
|
||||
|
||||
### `replication_user`
|
||||
|
||||
The username of the replication user. This is given as the value for
|
||||
`MASTER_USER` whenever a `CHANGE_MASTER_TO` command is executed.
|
||||
|
||||
Both `replication_user` and `replication_password` parameters must be defined if
|
||||
a custom replication user is used. If neither of the parameters is defined, the
|
||||
`CHANGE MASTER TO` command will use the monitor credentials for the replication
|
||||
user.
|
||||
|
||||
The credentials used for replication must have the `REPLICATION SLAVE`
|
||||
privilege.
|
||||
|
||||
### `replication_password`
|
||||
|
||||
The password of the replication user. This is given as the value for
|
||||
`MASTER_USER` whenever a `CHANGE_MASTER_TO` command is executed.
|
||||
|
||||
See `replication_user` parameter documentation for details about the use of this
|
||||
parameter.
|
||||
|
||||
## Using the MySQL Monitor With Binlogrouter
|
||||
|
||||
Since MaxScale 2.2 it's possible to detect a replication setup
|
||||
|
Reference in New Issue
Block a user