[maxscale]
threads=4

[MySQL Monitor]
type=monitor
module=mysqlmon
servers=server1,server2
user=maxskysql
passwd=skysql
monitor_interval=1000
detect_standalone_master=true
failcount=2
allow_cluster_recovery=true

[Traffic Router]
type=service
router=readconnroute
router_options=master
servers=server1,server2
user=maxskysql
passwd=skysql

[Traffic Listener]
type=listener
service=Traffic Router
protocol=MySQLClient
port=4006

[CLI]
type=service
router=cli

[CLI Listener]
type=listener
service=CLI
protocol=maxscaled
socket=default

[CLI Network Listener]
type=listener
service=CLI
protocol=maxscaled
address=127.0.0.1
port=6603

[server1]
type=server
address=node-000
port=3306
protocol=MySQLBackend

[server2]
type=server
address=node-001
port=3306
protocol=MySQLBackend
