
Replaced fprintf's with log write commands, removed the second argument from call of mysql_reset_thd_for_next_command(thd) according to changes in mariadb/5.5/sql/sql_parse.c #rev 3958. server/Makefile Instead of installing MaxScale.cnf (and overwriting previous config file), install MaxScale_template.cnf to DEST directory. config.c Replace references to 'Gateway' with 'MaxScale', change configuration parameter 'auth' to 'passwd' as it is named in other instances where referenced to password.
118 lines
2.1 KiB
INI
118 lines
2.1 KiB
INI
#
|
|
# Example MaxScale.cnf configuration file
|
|
#
|
|
#
|
|
#
|
|
# Number of server threads
|
|
# Valid options are:
|
|
# threads=<number of threads>
|
|
|
|
[maxscale]
|
|
threads=1
|
|
|
|
# Define a monitor that can be used to determine the state and role of
|
|
# the servers.
|
|
#
|
|
# Valid options are:
|
|
#
|
|
# module=<name of module to load>
|
|
# servers=<server name>,<server name>,...
|
|
# user =<user name - must have slave replication and
|
|
# slave client privileges>
|
|
# passwd=<password of the above user, plain text currently>
|
|
|
|
[MySQL Monitor]
|
|
type=monitor
|
|
module=mysqlmon
|
|
servers=server1,server2,server3
|
|
user=maxuser
|
|
passwd=maxpwd
|
|
|
|
# A series of service definition
|
|
#
|
|
# Valid options are:
|
|
#
|
|
# router=<name of router module>
|
|
# servers=<server name>,<server name>,...
|
|
# user=<User to fetch password inforamtion with>
|
|
# passwd=<Password of the user, plain text currently>
|
|
#
|
|
# Valid router modules currently are:
|
|
# readwritesplit, readconnroute and debugcli
|
|
|
|
[RW Split Router]
|
|
type=service
|
|
router=readwritesplit
|
|
servers=server1,server2,server3
|
|
user=maxuser
|
|
passwd=maxpwd
|
|
|
|
[Read Connection Router]
|
|
type=service
|
|
router=readconnroute
|
|
router_options=slave
|
|
servers=server1,server2,server3
|
|
user=maxuser
|
|
passwd=maxpwd
|
|
|
|
[HTTPD Router]
|
|
type=service
|
|
router=testroute
|
|
servers=server1,server2,server3
|
|
|
|
[Debug Interface]
|
|
type=service
|
|
router=debugcli
|
|
|
|
# Listener definitions for the services
|
|
#
|
|
# Valid options are:
|
|
#
|
|
# service=<name of service defined elsewhere>
|
|
# protocol=<name of protocol module with which to listen>
|
|
# port=<Listening port>
|
|
|
|
[RW Split Listener]
|
|
type=listener
|
|
service=RW Split Router
|
|
protocol=MySQLClient
|
|
port=4006
|
|
|
|
[Read Connection Listener]
|
|
type=listener
|
|
service=Read Connection Router
|
|
protocol=MySQLClient
|
|
port=4008
|
|
|
|
[Debug Listener]
|
|
type=listener
|
|
service=Debug Interface
|
|
protocol=telnetd
|
|
port=4442
|
|
|
|
[HTTPD Listener]
|
|
type=listener
|
|
service=HTTPD Router
|
|
protocol=HTTPD
|
|
port=6444
|
|
|
|
# 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
|