Files
MaxScale/maxscale-system-test/cnf/maxscale.cnf.template.sr_basics
Johan Wikman 3424158b7c MXS-2572 Add basic smartrouter test
Very simple, creates 10 threads that concurrently starts making
simple INSERTs and SELECTs. The purpose is to test that the basic
router to router mechanism of smartrouter works.
2019-07-01 09:11:22 +03:00

88 lines
1.4 KiB
Plaintext

[maxscale]
threads=###threads###
log_warning=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
[The-Monitor]
type=monitor
module=mysqlmon
servers=server1, server2, server3, server4
user=maxskysql
password=skysql
monitor_interval=1000
[RWS1]
type=service
router=readwritesplit
servers=server1, server2, server3, server4
user=maxskysql
password=skysql
slave_selection_criteria=LEAST_ROUTER_CONNECTIONS
[RWS1-Listener]
type=listener
service=RWS1
protocol=mariadbclient
socket=/tmp/rws1.sock
[RWS1-As-Server]
type=server
protocol=mariadbbackend
socket=/tmp/rws1.sock
[RWS2]
type=service
router=readwritesplit
servers=server1, server2, server3, server4
user=maxskysql
password=skysql
slave_selection_criteria=LEAST_ROUTER_CONNECTIONS
[RWS2-Listener]
type=listener
service=RWS2
protocol=MySQLClient
socket=/tmp/rws2.sock
[RWS2-As-Server]
type=server
protocol=mariadbbackend
socket=/tmp/rws2.sock
[SQ]
type=service
router=smartrouter
servers=RWS1-As-Server, RWS2-As-Server
master=RWS1-As-Server
user=maxskysql
password=skysql
[SQ-Listener]
type=listener
service=SQ
protocol=mariadbclient
port=4006