MXS-2313: Add rank test case

The test checks that the behavior of readwritesplit is as it should
be. The test still needs to be extended to cover readconnroute.
This commit is contained in:
Markus Mäkelä
2019-03-11 09:51:27 +02:00
parent 6befc7f7d4
commit 6ca89b4d27
5 changed files with 184 additions and 0 deletions

View File

@ -0,0 +1,64 @@
[maxscale]
threads=###threads###
log_info=1
[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
[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
master_failure_mode=fail_on_write
master_reconnection=true
[Read-Connection-Router]
type=service
router=readconnroute
router_options=running
servers=server1,server2,server3,server4
user=maxskysql
password=skysql
[RW-Split-Listener]
type=listener
service=RW-Split-Router
protocol=MySQLClient
port=4006
[Read-Connection-Listener]
type=listener
service=Read-Connection-Router
protocol=MySQLClient
port=4009