forked from signal18/replication-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.toml.sample.tst.masterslave-maxscale
243 lines (189 loc) · 5.95 KB
/
config.toml.sample.tst.masterslave-maxscale
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
# config.toml
# Example replication-manager configuration file
# change the service file in /etc/systemd/system/replication-manager.service to looks like :
# replication-manager --config=./etc/config.toml.sample --cluster=Cluster01,Cluster_Test_2_Nodes monitor
[Cluster_Maxscale_MasterSlave]
title = "ClusterTestMaxscale"
db-servers-hosts = "127.0.0.1:5055,127.0.0.1:5056"
db-servers-prefered-master = "127.0.0.1:5055"
db-servers-credential = "skysql:skyvodka"
replication-credential = "skysql:skyvodka"
failover-mode = "manual"
maxscale = true
maxscale-monitor = false
maxscale-maxinfo-port = 3307
maxscale-get-info-method = "maxadmin"
maxscale-servers = "127.0.0.1"
maxscale-port = 3307
maxscale-user = "admin"
maxscale-pass = "mariadb"
maxscale-write-port = 4007
maxscale-read-port = 4008
maxscale-read-write-port = 4006
maxscale-binlog = false
maxscale-binlog-port = 3305
[Default]
# monitoring-datadir = "/var/lib/replication-manager"
# monitoring-sharedir = "/usr/share/replication-manager"
## Timeout in seconds between consecutive monitoring
# monitoring-ticker = 2
#########
## LOG ##
#########
# log-file = "/var/log/replication-manager.log"
# log-syslog = true
verbose = true
##############
## TOPOLOGY ##
##############
# replication-multi-master = false
# replication-multi-tier-slave = false
##############
## FAILOVER ##
##############
# failover-mode = "manual"
# failover-pre-script = ""
# failover-post-script = ""
## Slaves will re enter with read-only
# failover-readonly-state = true
# failover-event-scheduler = false
# failover-event-status = false
## Failover after N failures detection
# failover-falsepositive-ping-counter = 5
## Cancel failover if already N failover
## Cancel failover if last failover was N seconds before
## Cancel failover in semi-sync when one slave is not in sync
## Cancel failover if one slave receive master heartbeat
## Cancel failover when replication delay is more than N seconds
# failover-limit = 0
# failover-time-limit = 0
# failover-at-sync = false
# failover-max-slave-delay = 30
# failover-restart-unsafe = false
# failover-falsepositive-heartbeat = true
# failover-falsepositive-heartbeat-timeout = 3
# failover-falsepositive-maxscale = false
# failover-falsepositive-maxscale-timeout = 14
# failover-falsepositive-external = false
# failover-falsepositive-external-port = 80
################
## SWITCHOVER ##
################
## In switchover Wait N milliseconds before killing long running transactions
## Cancel switchover if transaction running more than N seconds
## Cancel switchover if write query running more than N seconds
## Cancel switchover if one of the slaves is not synced based on GTID equality
# switchover-wait-kill = 5000
# switchover-wait-trx = 10
# switchover-wait-write-query = 10
# switchover-at-equal-gtid = false
# switchover-at-sync = false
# switchover-max-slave-delay = 30
############
## REJOIN ##
############
# autorejoin = true
# autorejoin-script = ""
# autorejoin-semisync = true
# autorejoin-backup-binlog = true
# autorejoin-flashback = false
# autorejoin-mysqldump = false
####################
## CHECKS & FORCE ##
####################
# check-replication-filters = true
# check-binlog-filters = true
# check-replication-state = true
# force-slave-heartbeat= false
# force-slave-heartbeat-retry = 5
# force-slave-heartbeat-time = 3
# force-slave-gtid-mode = false
# force-slave-semisync = false
# force-slave-failover-readonly-state = false
# force-binlog-row = false
# force-binlog-annotate = false
# force-binlog-slowqueries = false
# force-binlog-compress = false
# force-binlog-checksum = false
# force-inmemory-binlog-cache-size = false
# force-disk-relaylog-size-limit = false
# force-disk-relaylog-size-limit-size = 1000000000
# force-sync-binlog = false
# force-sync-innodb = false
##############
## MAXSCALE ##
##############
## for 2 nodes cluster maxscale can be driven by replication manager
# maxscale = false
# maxscale-binlog = false
# maxscale-servers = "192.168.0.201"
# maxscale-port = 4003
# maxscale-user = "admin"
# maxscale-pass = "mariadb"
## When true replication manager drive maxscale server state
## Not required unless multiple maxscale or release does not support detect_stale_slave
# maxscale-disable-monitor = false
## maxinfo|maxadmin
# maxscale-get-info-method = "maxadmin"
# maxscale-maxinfo-port = 4002
# maxscale-write-port = 4007
# maxscale-read-port = 4008
# maxscale-read-write-port = 4006
# maxscale-binlog-port = 4000
#############
## HAPROXY ##
#############
## Wrapper mode unless maxscale or proxysql required to be located with replication-manager
# haproxy = false
# haproxy-binary-path = "/usr/sbin/haproxy"
## Read write traffic
## Read only load balance least connection traffic
# haproxy-write-port = 3306
# haproxy-read-port = 3307
####################
## SHARDING PROXY ##
####################
# mdbshardproxy = false
# mdbshardproxy-hosts = "127.0.0.1:3306"
# mdbshardproxy-user = "root:mariadb"
#################
## ARBITRATION ##
#################
# arbitration-external = false
# arbitration-external-secret = "13787932529099014144"
# arbitration-external-hosts = "88.191.151.84:80"
# arbitration-peer-hosts ="127.0.0.1:10002"
## Unique value on each replication-manager
# arbitration-external-unique-id = 0
##########
## HTTP ##
##########
http-server = true
http-bind-address = "0.0.0.0"
# http-port = "10001"
# http-auth = false
# http-session-lifetime = 3600
# http-bootstrap-button = false
#########
## API ##
#########
# api-credential = "admin:repman"
# api-port = "3000"
############
## ALERTS ##
############
# mail-from = "replication-manager@localhost"
# mail-smtp-addr = "localhost:25"
# mail-to = "replication-manager@signal18.io"
##########
# STATS ##
##########
# graphite-metrics = false
# graphite-carbon-host = "127.0.0.1"
# graphite-carbon-port = 2003
# graphite-embedded = false
# graphite-carbon-api-port = 10002
# graphite-carbon-server-port = 10003
# graphite-carbon-link-port = 7002
# graphite-carbon-pickle-port = 2004
# graphite-carbon-pprof-port = 7007