|
| 1 | +# |
| 2 | +class orchestrator::params { |
| 3 | + |
| 4 | + $config = '/etc/orchestrator.conf.json' |
| 5 | + $config_template = 'orchestrator/orchestrator.conf.json.erb' |
| 6 | + $package_ensure = 'present' |
| 7 | + $package_manage = true |
| 8 | + $package_name = [ 'orchestrator' ] |
| 9 | + $service_enable = true |
| 10 | + $service_ensure = 'running' |
| 11 | + $service_manage = true |
| 12 | + $service_name = 'orchestrator' |
| 13 | + $srv_cnf = '/etc/mysql/orchestrator_srv.cnf' |
| 14 | + $topology_cnf = '/etc/mysql/orchestrator.cnf' |
| 15 | + |
| 16 | + $config_defaults = { |
| 17 | + 'Debug' => true, |
| 18 | + 'EnableSyslog' => false, |
| 19 | + 'ListenAddress' => ':3000', |
| 20 | + 'AgentsServerPort' => ':3001', |
| 21 | + 'MySQLTopologyCredentialsConfigFile' => $topology_cnf, |
| 22 | + 'MySQLTopologySSLPrivateKeyFile' => '', |
| 23 | + 'MySQLTopologySSLCertFile' => '', |
| 24 | + 'MySQLTopologySSLCAFile' => '', |
| 25 | + 'MySQLTopologySSLSkipVerify' => true, |
| 26 | + 'MySQLTopologyUseMutualTLS' => false, |
| 27 | + 'MySQLTopologyMaxPoolConnections' => 3, |
| 28 | + 'DatabaselessMode__experimental' => false, |
| 29 | + 'MySQLOrchestratorHost' => 'myorchestrator.backend.master.mcompany.com', |
| 30 | + 'MySQLOrchestratorPort' => 3306, |
| 31 | + 'MySQLOrchestratorDatabase' => 'orchestrator', |
| 32 | + 'MySQLOrchestratorCredentialsConfigFile' => $srv_cnf, |
| 33 | + 'MySQLOrchestratorSSLPrivateKeyFile' => '', |
| 34 | + 'MySQLOrchestratorSSLCertFile' => '', |
| 35 | + 'MySQLOrchestratorSSLCAFile' => '', |
| 36 | + 'MySQLOrchestratorSSLSkipVerify' => true, |
| 37 | + 'MySQLOrchestratorUseMutualTLS' => false, |
| 38 | + 'MySQLConnectTimeoutSeconds' => 1, |
| 39 | + 'DefaultInstancePort' => 3306, |
| 40 | + 'SlaveLagQuery' => '', |
| 41 | + 'SlaveStartPostWaitMilliseconds' => 1000, |
| 42 | + 'DiscoverByShowSlaveHosts' => true, |
| 43 | + 'InstancePollSeconds' => 5, |
| 44 | + 'ReadLongRunningQueries' => false, |
| 45 | + 'BinlogFileHistoryDays' => 10, |
| 46 | + 'UnseenInstanceForgetHours' => 240, |
| 47 | + 'SnapshotTopologiesIntervalHours' => 0, |
| 48 | + 'InstanceBulkOperationsWaitTimeoutSeconds' => 10, |
| 49 | + 'ActiveNodeExpireSeconds' => 5, |
| 50 | + 'HostnameResolveMethod' => 'default', |
| 51 | + 'MySQLHostnameResolveMethod' => '@@hostname', |
| 52 | + 'SkipBinlogServerUnresolveCheck' => true, |
| 53 | + 'ExpiryHostnameResolvesMinutes' => 60, |
| 54 | + 'RejectHostnameResolvePattern' => '', |
| 55 | + 'ReasonableReplicationLagSeconds' => 10, |
| 56 | + 'ProblemIgnoreHostnameFilters' => [], |
| 57 | + 'VerifyReplicationFilters' => false, |
| 58 | + 'MaintenanceOwner' => 'orchestrator', |
| 59 | + 'ReasonableMaintenanceReplicationLagSeconds' => 20, |
| 60 | + 'MaintenanceExpireMinutes' => 10, |
| 61 | + 'MaintenancePurgeDays' => 365, |
| 62 | + 'CandidateInstanceExpireMinutes' => 60, |
| 63 | + 'AuditLogFile' => '/var/log/orchestrator-audit.log', |
| 64 | + 'AuditToSyslog' => false, |
| 65 | + 'AuditPageSize' => 20, |
| 66 | + 'AuditPurgeDays' => 365, |
| 67 | + 'RemoveTextFromHostnameDisplay' => '.mycompany.com:3306', |
| 68 | + 'ReadOnly' => false, |
| 69 | + 'AuthenticationMethod' => '', |
| 70 | + 'HTTPAuthUser' => '', |
| 71 | + 'HTTPAuthPassword' => '', |
| 72 | + 'AuthUserHeader' => '', |
| 73 | + 'PowerAuthUsers' => ['*'], |
| 74 | + 'ClusterNameToAlias' => { |
| 75 | + '127.0.0.1' => 'test suite' |
| 76 | + }, |
| 77 | + 'AccessTokenUseExpirySeconds' => 60, |
| 78 | + 'AccessTokenExpiryMinutes' => 1440, |
| 79 | + 'DetectClusterAliasQuery' => '', |
| 80 | + 'DetectClusterDomainQuery' => '', |
| 81 | + 'DataCenterPattern' => '', |
| 82 | + 'PhysicalEnvironmentPattern' => '', |
| 83 | + 'PromotionIgnoreHostnameFilters' => [], |
| 84 | + 'ServeAgentsHttp' => false, |
| 85 | + 'AgentsUseSSL' => false, |
| 86 | + 'AgentsUseMutualTLS' => false, |
| 87 | + 'AgentSSLSkipVerify' => false, |
| 88 | + 'AgentSSLPrivateKeyFile' => '', |
| 89 | + 'AgentSSLCertFile' => '', |
| 90 | + 'AgentSSLCAFile' => '', |
| 91 | + 'AgentSSLValidOUs' => [], |
| 92 | + 'UseSSL' => false, |
| 93 | + 'UseMutualTLS' => false, |
| 94 | + 'SSLSkipVerify' => false, |
| 95 | + 'SSLPrivateKeyFile' => '', |
| 96 | + 'SSLCertFile' => '', |
| 97 | + 'SSLCAFile' => '', |
| 98 | + 'SSLValidOUs' => [], |
| 99 | + 'StatusEndpoint' => '/api/status', |
| 100 | + 'StatusSimpleHealth' => true, |
| 101 | + 'StatusOUVerify' => false, |
| 102 | + 'HttpTimeoutSeconds' => 60, |
| 103 | + 'AgentPollMinutes' => 60, |
| 104 | + 'AgentAutoDiscover' => false, |
| 105 | + 'UnseenAgentForgetHours' => 6, |
| 106 | + 'StaleSeedFailMinutes' => 60, |
| 107 | + 'SeedAcceptableBytesDiff' => 8192, |
| 108 | + 'PseudoGTIDPattern' => '`heartbeat` [(]ts, server_id, file, position, relay_master_log_file, exec_master_log_pos[)] VALUES', |
| 109 | + 'PseudoGTIDPatternIsFixedSubstring' => false, |
| 110 | + 'PseudoGTIDMonotonicHint' => 'heartbeat', |
| 111 | + 'DetectPseudoGTIDQuery' => 'select count(*)>0 as pseudo_gtid_exists from github_meta.heartbeat where ts > NOW() - INTERVAL 2 DAY;', |
| 112 | + 'BinlogEventsChunkSize' => 10000, |
| 113 | + 'BufferBinlogEvents' => true, |
| 114 | + 'SkipBinlogEventsContaining' => [], |
| 115 | + 'ReduceReplicationAnalysisCount' => false, |
| 116 | + 'FailureDetectionPeriodBlockMinutes' => 60, |
| 117 | + 'RecoveryPollSeconds' => 5, |
| 118 | + 'RecoveryPeriodBlockSeconds' => 600, |
| 119 | + 'RecoveryIgnoreHostnameFilters' => [], |
| 120 | + 'RecoverMasterClusterFilters' => [ |
| 121 | + '_master_pattern_' |
| 122 | + ], |
| 123 | + 'RecoverIntermediateMasterClusterFilters' => [ |
| 124 | + '_intermediate_master_pattern_' |
| 125 | + ], |
| 126 | + 'OnFailureDetectionProcesses' => [ |
| 127 | + "echo 'Detected {failureType} on {failureCluster}. Affected replicas: {countSlaves}' >> /tmp/recovery.log" |
| 128 | + ], |
| 129 | + 'PreFailoverProcesses' => [ |
| 130 | + "echo 'Will recover from {failureType} on {failureCluster}' >> /tmp/recovery.log" |
| 131 | + ], |
| 132 | + 'PostFailoverProcesses' => [ |
| 133 | + "echo '(for all types) Recovered from {failureType} on {failureCluster}. Failed: {failedHost}:{failedPort}; Successor: {successorHost}:{successorPort}' >> /tmp/recovery.log" |
| 134 | + ], |
| 135 | + 'PostUnsuccessfulFailoverProcesses' => [], |
| 136 | + 'PostMasterFailoverProcesses' => [ |
| 137 | + "echo 'Recovered from {failureType} on {failureCluster}. Failed: {failedHost}:{failedPort}; Promoted: {successorHost}:{successorPort}' >> /tmp/recovery.log" |
| 138 | + ], |
| 139 | + 'PostIntermediateMasterFailoverProcesses' => [ |
| 140 | + "echo 'Recovered from {failureType} on {failureCluster}. Failed: {failedHost}:{failedPort}; Successor: {successorHost}:{successorPort}' >> /tmp/recovery.log" |
| 141 | + ], |
| 142 | + 'CoMasterRecoveryMustPromoteOtherCoMaster' => true, |
| 143 | + 'DetachLostSlavesAfterMasterFailover' => true, |
| 144 | + 'ApplyMySQLPromotionAfterMasterFailover' => false, |
| 145 | + 'MasterFailoverLostInstancesDowntimeMinutes' => 60, |
| 146 | + 'PostponeSlaveRecoveryOnLagMinutes' => 10, |
| 147 | + 'OSCIgnoreHostnameFilters' => [], |
| 148 | + 'GraphitePollSeconds' => 60, |
| 149 | + 'GraphiteAddr' => '', |
| 150 | + 'GraphitePath' => '', |
| 151 | + 'GraphiteConvertHostnameDotsToUnderscores' => true, |
| 152 | + } |
| 153 | +} |
0 commit comments