# # Example gateway.cnf configuration file # # # # A genererate configuration session # Valid options are: # threads= [gateway] threads=1 # A series service definition # Valid option are # router= # servers=,,... # user= # auth= # # Valid router modules currently are: # readwritesplit, readconnroute and debugcli [RW Split Service] type=service router=readwritesplit router_options=slave servers=server1,server2,server3 user=raatikka auth=vilho [Test Service] type=service router=readconnroute router_options=slave servers=server1,server2,server3 user=raatikka auth=vilho # Definition of the servers [server1] type=server address=127.0.0.1 port=3000 protocol=MySQLBackend [server2] type=server address=127.0.0.1 port=3001 protocol=MySQLBackend [server3] type=server address=127.0.0.1 port=3002 protocol=MySQLBackend [Debug Service] type=service router=debugcli # Listener definitions for the services # Valid options are: # service= # protocol= # port [Debug Listener] type=listener service=Debug Service protocol=telnetd port=4442 [Test Listener] type=listener service=Test Service protocol=MySQLClient port=4008 [RW Split Listener] type=listener service=RW Split Service protocol=MySQLClient port=4006 # Define a monitor that can be used to determine the state and role of # the servers. # Valid options are: # module= # servers=,,... # user= # auth= [MySQL Monitor] type=monitor module=mysqlmon servers=server1,server2,server3 user=raatikka auth=vilho [HTTPD Service] type=service router=testroute [HTTPD Listener] type=listener service=HTTPD Service protocol=HTTPD port=6444