-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmaxscale.cnf
More file actions
44 lines (39 loc) · 748 Bytes
/
maxscale.cnf
File metadata and controls
44 lines (39 loc) · 748 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
[maxscale]
threads=auto
admin_host=0.0.0.0
admin_port=8989
admin_auth=1
admin_enabled=1
admin_secure_gui=false
# Define the two MariaDB servers
[server1]
type=server
address=mariadb1
port=3306
protocol=MariaDBBackend
[server2]
type=server
address=mariadb2
port=3306
protocol=MariaDBBackend
# Galera Monitor
[GaleraMonitor]
type=monitor
module=galeramon
servers=server1,server2
user=root
password=example
monitor_interval=2000ms
# Service that listens for incoming client connections and routes queries to the servers
[GaleraService]
type=service
router=readconnroute
servers=server1,server2
user=maxscale_user
password=1234
# Listener for the Galera Service
[GaleraListener]
type=listener
service=GaleraService
protocol=MariaDBClient
port=4006