You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DISTMYSQL-228: Orchestrator GUI messages should optionally
contain the name of the orchestratorapp generating the message
https://jira.percona.com/browse/DISTMYSQL-228
Problem:
When Orchestrator is used in HA setup it is not possible to know which
Orchestrator instance provided the response to the client. In general
it is OK however, for debugging purposes, it seems to be useful to be
able to easily identify the Orchestrator instance which serviced
the request.
Solution:
Two new configuration parameters were added
(if not present or empty strings, the old behavior applies)
PrependMessagesWithOrcIdentity:
FQDN - Fully qualified domain name of orchestrator's host will be added
with the fallback to 'hostname'
hostname - hostname of the orchestrator's host will be added with the
fallback to 'custom' if CustomOrcIdentity is not empty
custom - custom prefix as configured in CustomOrcIdentity will be added
CustomOrcIdentity:
Any string identifying Orchestrator instance. Works together with
PrependMessagesWithOrcIdentity=custom or as a fallback for
FQDN/hostname
Copy file name to clipboardExpand all lines: go/config/config.go
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -278,6 +278,8 @@ type Configuration struct {
278
278
EnforceExactSemiSyncReplicasbool// If true, semi-sync replicas will be enabled/disabled to match the wait count in the desired priority order; this applies to LockedSemiSyncMaster and MasterWithTooManySemiSyncReplicas
279
279
RecoverLockedSemiSyncMasterbool// If true, orchestrator will recover from a LockedSemiSync state by enabling semi-sync on replicas to match the wait count; this behavior can be overridden by EnforceExactSemiSyncReplicas
280
280
ReasonableLockedSemiSyncMasterSecondsuint// Time to evaluate the LockedSemiSyncHypothesis before triggering the LockedSemiSync analysis; falls back to ReasonableReplicationLagSeconds if not set
281
+
PrependMessagesWithOrcIdentitystring// use FQDN/hostname/custom to prefix error message returned to the client. Empty string (default)/none skips prefixing.
282
+
CustomOrcIdentitystring// use if PrependMessagesWithOrcIdentity is 'custom'
281
283
}
282
284
283
285
// ToJSONString will marshal this configuration as JSON
0 commit comments