
The docker image now simply installs the latest MaxScale version instead of building it. This significantly reduces the amount of maintenance that the image requires. Updated the configurations to allow runtime definition of servers and updated README.md to reflect the changes in the files. Pointed links to 2.2 instead of develop. Removed text from the readme that was not strictly related to running the MaxScale image.
54 lines
1.2 KiB
INI
54 lines
1.2 KiB
INI
# Global parameters
|
|
[maxscale]
|
|
threads=auto
|
|
|
|
# Monitor for the servers
|
|
# This will keep MaxScale aware of the state of the servers.
|
|
# MySQL Monitor documentation:
|
|
# https://github.com/mariadb-corporation/MaxScale/blob/2.2/Documentation/Monitors/MariaDB-Monitor.md
|
|
|
|
[MariaDB-Monitor]
|
|
type=monitor
|
|
module=mariadbmon
|
|
user=myuser
|
|
passwd=mypwd
|
|
monitor_interval=1000
|
|
|
|
# Service definitions
|
|
# Service Definition for a read-only service and a read/write splitting service.
|
|
|
|
# ReadConnRoute documentation:
|
|
# https://github.com/mariadb-corporation/MaxScale/blob/2.2/Documentation/Routers/ReadConnRoute.md
|
|
|
|
[Read-Only-Service]
|
|
type=service
|
|
router=readconnroute
|
|
user=myuser
|
|
passwd=mypwd
|
|
router_options=slave
|
|
|
|
# ReadWriteSplit documentation:
|
|
# https://github.com/mariadb-corporation/MaxScale/blob/2.2/Documentation/Routers/ReadWriteSplit.md
|
|
|
|
[Read-Write-Service]
|
|
type=service
|
|
router=readwritesplit
|
|
user=myuser
|
|
passwd=mypwd
|
|
max_slave_connections=100%
|
|
|
|
# Listener definitions for the services
|
|
# Listeners represent the ports the services will listen on.
|
|
|
|
[Read-Only-Listener]
|
|
type=listener
|
|
service=Read-Only-Service
|
|
protocol=MySQLClient
|
|
port=4008
|
|
|
|
[Read-Write-Listener]
|
|
type=listener
|
|
service=Read-Write-Service
|
|
protocol=MySQLClient
|
|
port=4006
|