
The switchover sometimes fails due to a broken connection when the STOP SLAVE on the new master is executed. Nothing is logged on the server in question and the error message simply states that the connection was lost in the middle of a query. Increasing the query_retries to 1 reduced the likelihood of failure from about 1/3 of tests failing to roughly 1/6 of tests failing. Increasing it to 5 seems to remove it completely. As to what is the real reason this happens, we do not yet know.
63 lines
1.0 KiB
Plaintext
63 lines
1.0 KiB
Plaintext
[maxscale]
|
|
threads=###threads###
|
|
log_info=1
|
|
query_retries=5
|
|
query_retry_timeout=20
|
|
|
|
[MySQL Monitor]
|
|
type=monitor
|
|
module=mysqlmon
|
|
servers=server1,server2,server3,server4
|
|
user=maxskysql
|
|
password=skysql
|
|
monitor_interval=1000
|
|
|
|
[RW Split Router]
|
|
type=service
|
|
router=readwritesplit
|
|
servers=server1,server2,server3,server4
|
|
user=maxskysql
|
|
password=skysql
|
|
transaction_replay=true
|
|
transaction_replay_max_size=200
|
|
|
|
[RW Split Listener]
|
|
type=listener
|
|
service=RW Split Router
|
|
protocol=MySQLClient
|
|
port=4006
|
|
|
|
[CLI]
|
|
type=service
|
|
router=cli
|
|
|
|
[CLI Listener]
|
|
type=listener
|
|
service=CLI
|
|
protocol=maxscaled
|
|
socket=default
|
|
|
|
[server1]
|
|
type=server
|
|
address=###node_server_IP_1###
|
|
port=###node_server_port_1###
|
|
protocol=MySQLBackend
|
|
|
|
[server2]
|
|
type=server
|
|
address=###node_server_IP_2###
|
|
port=###node_server_port_2###
|
|
protocol=MySQLBackend
|
|
|
|
[server3]
|
|
type=server
|
|
address=###node_server_IP_3###
|
|
port=###node_server_port_3###
|
|
protocol=MySQLBackend
|
|
|
|
[server4]
|
|
type=server
|
|
address=###node_server_IP_4###
|
|
port=###node_server_port_4###
|
|
protocol=MySQLBackend
|