[maxscale] #This parameter controls the number of worker threads #that are handling the events coming from the kernel. #The default is 1 thread. It is recommended that you start #with one thread and increase the number if you require #greater performance. Increasing the amount of worker threads #beyond the number of processor cores does not improve #the performance, rather is likely to degrade it, #and can consume resources needlessly. threads=auto maxlog=1 log_warning=1 log_notice=1 log_info=0 log_debug=0 [dbmaster] type=server address=10.46.1.208 port=3306 protocol=MariaDBBackend log_auth_warnings=1 [dbslave] type=server address=10.46.1.43 port=3306 protocol=MariaDBBackend log_auth_warnings=1 [dbmonitor] type=monitor module=mariadbmon servers=dbmaster,dbslave user=monitor password=xxx monitor_interval=2000 [splitter] type=service router=readwritesplit servers=dbmaster,dbslave user=maxscale password=xxx connection_keepalive=120 master_accept_reads=true [splitter-listener] type=listener service=splitter protocol=MariaDBClient port=3306 [maxadmin] type=service router=cli [maxadmin-listener] type=listener service=maxadmin protocol=maxscaled socket=default