Files
MaxScale/system-test/cnf/maxscale.cnf.template.gatekeeper
2020-07-28 16:15:50 +03:00

81 lines
1.2 KiB
Plaintext

[maxscale]
threads=###threads###
log_warning=1
# Monitors
[MySQL-Monitor]
type=monitor
module=mysqlmon
servers= server1, server2,server3 ,server4
user=maxskysql
password= skysql
monitor_interval=1000
detect_stale_master=false
# Services
[RW-Split-Router]
type=service
router=readwritesplit
servers=server1,server2,server3,server4
max_slave_connections=100%
use_sql_variables_in=master
slave_selection_criteria=LEAST_BEHIND_MASTER
user=maxskysql
password=skysql
filters=gatekeeper
[CLI]
type=service
router=cli
# Filters
[gatekeeper]
type=filter
module=gatekeeper
mode=learn
# Listeners
[CLI-Listener]
type=listener
service=CLI
protocol=maxscaled
#address=localhost
socket=default
[RW-Split-Listener]
type=listener
service=RW-Split-Router
protocol=MySQLClient
port=4006
socket=/tmp/rwsplit.sock
# Servers
[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