
readconnroute now support the options slave and master to restrict the set of servers it will connect to
49 lines
621 B
INI
49 lines
621 B
INI
#
|
|
# Example gateway.cnf configuration file
|
|
#
|
|
#
|
|
[gateway]
|
|
threads=1
|
|
|
|
[Test Service]
|
|
type=service
|
|
router=readconnroute
|
|
router_options=slave
|
|
servers=server1,server2,server3
|
|
user=massi
|
|
auth=massi
|
|
|
|
[server1]
|
|
type=server
|
|
address=127.0.0.1
|
|
port=3306
|
|
protocol=MySQLBackend
|
|
|
|
[server2]
|
|
type=server
|
|
address=127.0.0.1
|
|
port=3307
|
|
protocol=MySQLBackend
|
|
|
|
[server3]
|
|
type=server
|
|
address=127.0.0.1
|
|
port=3308
|
|
protocol=MySQLBackend
|
|
|
|
[Debug Service]
|
|
type=service
|
|
router=debugcli
|
|
|
|
[Debug Listener]
|
|
type=listener
|
|
service=Debug Service
|
|
protocol=telnetd
|
|
port=4442
|
|
|
|
[Test Listener]
|
|
type=listener
|
|
service=Test Service
|
|
protocol=MySQLClient
|
|
port=4006
|