Update example configuration
Updated links and module names in the configuration. Also changed object names so that they don't produce warnings. Removed redundant parameters and tuned default monitor_interval to a slightly more reasonable 2000 milliseconds. Enabled automatic thread number configuration.
This commit is contained in:
@ -1,39 +1,39 @@
|
|||||||
# MaxScale documentation on GitHub:
|
# MaxScale documentation:
|
||||||
# https://github.com/mariadb-corporation/MaxScale/blob/2.1/Documentation/Documentation-Contents.md
|
# https://mariadb.com/kb/en/mariadb-enterprise/mariadb-maxscale-22/
|
||||||
|
|
||||||
# Global parameters
|
# Global parameters
|
||||||
#
|
#
|
||||||
# Complete list of configuration options:
|
# Complete list of configuration options:
|
||||||
# https://github.com/mariadb-corporation/MaxScale/blob/2.1/Documentation/Getting-Started/Configuration-Guide.md
|
# https://mariadb.com/kb/en/mariadb-enterprise/mariadb-maxscale-22-mariadb-maxscale-configuration-usage-scenarios/
|
||||||
|
|
||||||
[maxscale]
|
[maxscale]
|
||||||
threads=1
|
threads=auto
|
||||||
|
|
||||||
# Server definitions
|
# Server definitions
|
||||||
#
|
#
|
||||||
# Set the address of the server to the network
|
# Set the address of the server to the network
|
||||||
# address of a MySQL server.
|
# address of a MariaDB server.
|
||||||
#
|
#
|
||||||
|
|
||||||
[server1]
|
[server1]
|
||||||
type=server
|
type=server
|
||||||
address=127.0.0.1
|
address=127.0.0.1
|
||||||
port=3306
|
port=3306
|
||||||
protocol=MySQLBackend
|
protocol=MariaDBBackend
|
||||||
|
|
||||||
# Monitor for the servers
|
# Monitor for the servers
|
||||||
#
|
#
|
||||||
# This will keep MaxScale aware of the state of the servers.
|
# This will keep MaxScale aware of the state of the servers.
|
||||||
# MySQL Monitor documentation:
|
# MariaDB Monitor documentation:
|
||||||
# https://github.com/mariadb-corporation/MaxScale/blob/2.1/Documentation/Monitors/MySQL-Monitor.md
|
# https://mariadb.com/kb/en/mariadb-enterprise/mariadb-maxscale-22-mariadb-monitor/
|
||||||
|
|
||||||
[MySQL Monitor]
|
[MariaDB-Monitor]
|
||||||
type=monitor
|
type=monitor
|
||||||
module=mysqlmon
|
module=mariadbmon
|
||||||
servers=server1
|
servers=server1
|
||||||
user=myuser
|
user=myuser
|
||||||
passwd=mypwd
|
passwd=mypwd
|
||||||
monitor_interval=10000
|
monitor_interval=2000
|
||||||
|
|
||||||
# Service definitions
|
# Service definitions
|
||||||
#
|
#
|
||||||
@ -42,9 +42,9 @@ monitor_interval=10000
|
|||||||
#
|
#
|
||||||
|
|
||||||
# ReadConnRoute documentation:
|
# ReadConnRoute documentation:
|
||||||
# https://github.com/mariadb-corporation/MaxScale/blob/2.1/Documentation/Routers/ReadConnRoute.md
|
# https://mariadb.com/kb/en/mariadb-enterprise/mariadb-maxscale-22-readconnroute/
|
||||||
|
|
||||||
[Read-Only Service]
|
[Read-Only-Service]
|
||||||
type=service
|
type=service
|
||||||
router=readconnroute
|
router=readconnroute
|
||||||
servers=server1
|
servers=server1
|
||||||
@ -53,21 +53,20 @@ passwd=mypwd
|
|||||||
router_options=slave
|
router_options=slave
|
||||||
|
|
||||||
# ReadWriteSplit documentation:
|
# ReadWriteSplit documentation:
|
||||||
# https://github.com/mariadb-corporation/MaxScale/blob/2.1/Documentation/Routers/ReadWriteSplit.md
|
# https://mariadb.com/kb/en/mariadb-enterprise/mariadb-maxscale-22-readwritesplit/
|
||||||
|
|
||||||
[Read-Write Service]
|
[Read-Write-Service]
|
||||||
type=service
|
type=service
|
||||||
router=readwritesplit
|
router=readwritesplit
|
||||||
servers=server1
|
servers=server1
|
||||||
user=myuser
|
user=myuser
|
||||||
passwd=mypwd
|
passwd=mypwd
|
||||||
max_slave_connections=100%
|
|
||||||
|
|
||||||
# This service enables the use of the MaxAdmin interface
|
# This service enables the use of the MaxAdmin interface
|
||||||
# MaxScale administration guide:
|
# MaxScale administration guide:
|
||||||
# https://github.com/mariadb-corporation/MaxScale/blob/2.1/Documentation/Reference/MaxAdmin.md
|
# https://mariadb.com/kb/en/mariadb-enterprise/mariadb-maxscale-22-maxadmin-admin-interface/
|
||||||
|
|
||||||
[MaxAdmin Service]
|
[MaxAdmin-Service]
|
||||||
type=service
|
type=service
|
||||||
router=cli
|
router=cli
|
||||||
|
|
||||||
@ -77,20 +76,20 @@ router=cli
|
|||||||
# services will listen on.
|
# services will listen on.
|
||||||
#
|
#
|
||||||
|
|
||||||
[Read-Only Listener]
|
[Read-Only-Listener]
|
||||||
type=listener
|
type=listener
|
||||||
service=Read-Only Service
|
service=Read-Only-Service
|
||||||
protocol=MySQLClient
|
protocol=MariaDBClient
|
||||||
port=4008
|
port=4008
|
||||||
|
|
||||||
[Read-Write Listener]
|
[Read-Write-Listener]
|
||||||
type=listener
|
type=listener
|
||||||
service=Read-Write Service
|
service=Read-Write-Service
|
||||||
protocol=MySQLClient
|
protocol=MariaDBClient
|
||||||
port=4006
|
port=4006
|
||||||
|
|
||||||
[MaxAdmin Listener]
|
[MaxAdmin-Listener]
|
||||||
type=listener
|
type=listener
|
||||||
service=MaxAdmin Service
|
service=MaxAdmin-Service
|
||||||
protocol=maxscaled
|
protocol=maxscaled
|
||||||
socket=default
|
socket=default
|
||||||
|
Reference in New Issue
Block a user