Files
MaxScale/MaxScale.cnf
Mark Riddoch 02e60e215b Name change to MaxScale rather than gateway
Addition of code for dynamic reconfiguration by editign the cnf file and sendign a SIGHUP

Improvements to the make install rule
2013-07-17 13:32:04 +02:00

108 lines
2.0 KiB
INI

#
# Example gateway.cnf configuration file
#
#
#
# A genererate configuration session
# Valid options are:
# threads=<number of epoll threads>
[gateway]
threads=1
# A series service definition
# Valid option are
# router=<name of router module>
# servers=<server name>,<server name>,...
# user=<User to fetch password inforamtion with>
# auth=<Password of the user, plain text currently>
#
# 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=<name of service defined elsewhere>
# protocol=<name of protocol module with which to listen>
# port<Listening 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=<name of module to load>
# servers=<server name>,<server name>,...
# user=<user name - must have slave replication and slave client privileges>
# auth=<password of the above user, plain text currently>
[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