diff --git a/server/test/MaxScale_test.cnf b/server/test/MaxScale_test.cnf index 7c2e8972e..60587ff92 100644 --- a/server/test/MaxScale_test.cnf +++ b/server/test/MaxScale_test.cnf @@ -1,27 +1,5 @@ -# -# Example MaxScale.cnf configuration file -# -# -# -# Number of server threads -# Valid options are: -# threads= - [maxscale] -threads=1 - -# Define a monitor that can be used to determine the state and role of -# the servers. -# -# Valid options are: -# -# module= -# servers=,,... -# user = -# passwd= -# monitor_interval= +threads=4 [MySQL Monitor] type=monitor @@ -29,41 +7,19 @@ module=mysqlmon servers=server1,server2,server3,server4 user=maxuser passwd=maxpwd - -# A series of service definition -# -# Valid options are: -# -# router= -# servers=,,... -# user= -# passwd= -# enable_root_user=<0 or 1, default is 0> -# version_string= -# -# Valid router modules currently are: -# readwritesplit, readconnroute and debugcli - +monitor_interval=10000 [RW Split Router] type=service router=readwritesplit servers=server1,server2,server3,server4 -max_slave_connections=90% -write_ses_variables_to_all=Yes -read_ses_variables_from_slaves=Yes user=maxuser passwd=maxpwd -filters=Hint [RW Split Hint Router] type=service router=readwritesplit servers=server1,server2,server3,server4 -max_slave_connections=90% -write_ses_variables_to_all=Yes -read_ses_variables_from_slaves=Yes user=maxuser passwd=maxpwd filters=Hint @@ -77,31 +33,23 @@ servers=server1 user=maxuser passwd=maxpwd - -[HTTPD Router] -type=service -router=testroute -servers=server1,server2,server3 +[Hint] +type=filter +module=hintfilter [Debug Interface] type=service router=debugcli +[CLI] +type=service +router=cli -[Hint] -type=filter -module=hintfilter - - -# Listener definitions for the services -# -# Valid options are: -# -# service= -# protocol= -# port= -# address=
-# socket= +[Read Connection Listener] +type=listener +service=Read Connection Router +protocol=MySQLClient +port=4008 [RW Split Listener] type=listener @@ -115,28 +63,17 @@ service=RW Split Hint Router protocol=MySQLClient port=4009 -[Read Connection Listener] -type=listener -service=Read Connection Router -protocol=MySQLClient -port=4008 -#socket=/tmp/readconn.sock - [Debug Listener] type=listener service=Debug Interface protocol=telnetd port=4442 -#address=127.0.0.1 -[HTTPD Listener] +[CLI Listener] type=listener -service=HTTPD Router -protocol=HTTPD -port=6444 - -# Definition of the servers - +service=CLI +protocol=maxscaled +port=6603 [server1] type=server address=127.0.0.1