Skip to content

Commit 2acafe8

Browse files
committed
Updated default orchestrator config
1 parent f995fa1 commit 2acafe8

File tree

1 file changed

+22
-13
lines changed

1 file changed

+22
-13
lines changed

config/orchestrator.conf.json

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"Debug": false,
2+
"Debug": true,
33
"EnableSyslog": false,
44
"ListenAddress": ":3000",
55
"MySQLTopologyUser": "orc_client_user",
@@ -11,14 +11,15 @@
1111
"MySQLTopologySSLSkipVerify": true,
1212
"MySQLTopologyUseMutualTLS": false,
1313
"BackendDB": "sqlite",
14-
"SQLite3DataFile": "/app/data/orchestrator.sqlite3",
14+
"SQLite3DataFile": "/usr/local/orchestrator/orchestrator.sqlite3",
1515
"MySQLConnectTimeoutSeconds": 1,
1616
"DefaultInstancePort": 3306,
1717
"DiscoverByShowSlaveHosts": true,
1818
"InstancePollSeconds": 5,
1919
"DiscoveryIgnoreReplicaHostnameFilters": [
2020
"a_host_i_want_to_ignore[.]example[.]com",
21-
".*[.]ignore_all_hosts_from_this_domain[.]example[.]com"
21+
".*[.]ignore_all_hosts_from_this_domain[.]example[.]com",
22+
"a_host_with_extra_port_i_want_to_ignore[.]example[.]com:3307"
2223
],
2324
"UnseenInstanceForgetHours": 240,
2425
"SnapshotTopologiesIntervalHours": 0,
@@ -35,9 +36,8 @@
3536
"CandidateInstanceExpireMinutes": 60,
3637
"AuditLogFile": "",
3738
"AuditToSyslog": false,
38-
"RemoveTextFromHostnameDisplay": ":3306",
39+
"RemoveTextFromHostnameDisplay": ".mydomain.com:3306",
3940
"ReadOnly": false,
40-
"UseSuperReadOnly": true,
4141
"AuthenticationMethod": "",
4242
"HTTPAuthUser": "",
4343
"HTTPAuthPassword": "",
@@ -46,9 +46,9 @@
4646
"*"
4747
],
4848
"ClusterNameToAlias": {
49-
"mysql_node[0-9][0-9]": "Mysql HA test Suite"
49+
"127.0.0.1": "test suite"
5050
},
51-
"SlaveLagQuery": "",
51+
"ReplicationLagQuery": "",
5252
"DetectClusterAliasQuery": "SELECT SUBSTRING_INDEX(@@hostname, '.', 1)",
5353
"DetectClusterDomainQuery": "",
5454
"DetectInstanceAliasQuery": "",
@@ -89,17 +89,21 @@
8989
"SkipBinlogEventsContaining": [],
9090
"ReduceReplicationAnalysisCount": true,
9191
"FailureDetectionPeriodBlockMinutes": 60,
92+
"FailMasterPromotionOnLagMinutes": 0,
9293
"RecoveryPeriodBlockSeconds": 3600,
9394
"RecoveryIgnoreHostnameFilters": [],
9495
"RecoverMasterClusterFilters": [
95-
".*"
96+
"_master_pattern_"
9697
],
9798
"RecoverIntermediateMasterClusterFilters": [
98-
".*"
99+
"_intermediate_master_pattern_"
99100
],
100101
"OnFailureDetectionProcesses": [
101102
"echo 'Detected {failureType} on {failureCluster}. Affected replicas: {countSlaves}' >> /tmp/recovery.log"
102103
],
104+
"PreGracefulTakeoverProcesses": [
105+
"echo 'Planned takeover about to take place on {failureCluster}. Master will switch to read_only' >> /tmp/recovery.log"
106+
],
103107
"PreFailoverProcesses": [
104108
"echo 'Will recover from {failureType} on {failureCluster}' >> /tmp/recovery.log"
105109
],
@@ -113,16 +117,21 @@
113117
"PostIntermediateMasterFailoverProcesses": [
114118
"echo 'Recovered from {failureType} on {failureCluster}. Failed: {failedHost}:{failedPort}; Successor: {successorHost}:{successorPort}' >> /tmp/recovery.log"
115119
],
120+
"PostGracefulTakeoverProcesses": [
121+
"echo 'Planned takeover complete' >> /tmp/recovery.log"
122+
],
116123
"CoMasterRecoveryMustPromoteOtherCoMaster": true,
117124
"DetachLostSlavesAfterMasterFailover": true,
118125
"ApplyMySQLPromotionAfterMasterFailover": true,
119126
"PreventCrossDataCenterMasterFailover": false,
120127
"PreventCrossRegionMasterFailover": false,
121-
"MasterFailoverDetachSlaveMasterHost": false,
128+
"MasterFailoverDetachReplicaMasterHost": false,
122129
"MasterFailoverLostInstancesDowntimeMinutes": 0,
123-
"PostponeSlaveRecoveryOnLagMinutes": 0,
130+
"PostponeReplicaRecoveryOnLagMinutes": 0,
124131
"OSCIgnoreHostnameFilters": [],
125132
"GraphiteAddr": "",
126133
"GraphitePath": "",
127-
"GraphiteConvertHostnameDotsToUnderscores": true
128-
}
134+
"GraphiteConvertHostnameDotsToUnderscores": true,
135+
"ConsulAddress": "",
136+
"ConsulAclToken": ""
137+
}

0 commit comments

Comments
 (0)