MySQLTopologyUseMutualTLSbool// Turn on TLS authentication with the Topology MySQL instances
MySQLTopologyMaxPoolConnectionsint// Max concurrent connections on any topology instance
DatabaselessMode__experimentalbool// !!!EXPERIMENTAL!!! Orchestrator will execute without speaking to a backend database; super-standalone mode
BackendDBstring// EXPERIMENTAL: type of backend db; either "mysql" or "sqlite3"
SQLite3DataFilestring// when BackendDB == "sqlite3", full path to sqlite3 datafile
SkipOrchestratorDatabaseUpdatebool// When true, do not check backend database schema nor attempt to update it. Useful when you may be running multiple versions of orchestrator, and you only wish certain boxes to dictate the db structure (or else any time a different orchestrator version runs it will rebuild database schema)
PanicIfDifferentDatabaseDeploybool// When true, and this process finds the orchestrator backend DB was provisioned by a different version, panic
MySQLOrchestratorHoststring
...
...
@@ -160,6 +162,7 @@ type Configuration struct {
PseudoGTIDMonotonicHintstring// subtring in Pseudo-GTID entry which indicates Pseudo-GTID entries are expected to be monotonically increasing
DetectPseudoGTIDQuerystring// Optional query which is used to authoritatively decide whether pseudo gtid is enabled on instance
PseudoGTIDCoordinatesHistoryHeuristicMinutesint// Significantly reducing Pseudo-GTID lookup time, this indicates the most recent N minutes binlog position where search for Pseudo-GTID will heuristically begin (there is a fallback on fullscan if unsuccessful)
PseudoGTIDPreferIndependentMultiMatchbool// if 'false', a multi-replica Pseudo-GTID operation will attempt grouping replicas via Pseudo-GTID, and make less binlog computations. However it may cause servers in same bucket wait for one another, which could delay some servers from being repointed. There is a tradeoff between total operation time for all servers, and per-server time. When 'true', Pseudo-GTID matching will operate per server, independently. This will cause waste of same calculations, but no two servers will wait on one another.
BinlogEventsChunkSizeint// Chunk size (X) for SHOW BINLOG|RELAYLOG EVENTS LIMIT ?,X statements. Smaller means less locking and mroe work to be done
BufferBinlogEventsbool// Should we used buffered read on SHOW BINLOG|RELAYLOG EVENTS -- releases the database lock sooner (recommended)
SkipBinlogEventsContaining[]string// When scanning/comparing binlogs for Pseudo-GTID, skip entries containing given texts. These are NOT regular expressions (would consume too much CPU while scanning binlogs), just substrings to find.
URLPrefixstring// URL prefix to run orchestrator on non-root web path, e.g. /orchestrator to put it behind nginx.
MaxOutdatedKeysToShowint// Maximum number of keys to show in ContinousDiscovery. If the number of polled hosts grows too far then showing the complete list is not ideal.
DiscoveryIgnoreReplicaHostnameFilters[]string// Regexp filters to apply to prevent auto-discovering new replicas. Usage: unreachable servers due to firewalls, applications which trigger binlog dumps
}
// ToJSONString will marshal this configuration as JSON
a.Description="Intermediate master cannot be reached by orchestrator; some of its replicas are unreachable and none of its reachable replicas is replicating"
INSERTINTOdatabase_instance(hostname,port,last_checked,last_attempted_check,last_seen,uptime,server_id,server_uuid,version,binlog_server,read_only,binlog_format,log_bin,log_slave_updates,binary_log_file,binary_log_pos,master_host,master_port,slave_sql_running,slave_io_running,has_replication_filters,oracle_gtid,executed_gtid_set,gtid_purged,supports_oracle_gtid,mariadb_gtid,pseudo_gtid,master_log_file,read_master_log_pos,relay_master_log_file,exec_master_log_pos,relay_log_file,relay_log_pos,last_sql_error,last_io_error,seconds_behind_master,slave_lag_seconds,sql_delay,allow_tls,num_slave_hosts,slave_hosts,cluster_name,suggested_cluster_alias,data_center,physical_environment,instance_alias,semi_sync_enforced,replication_depth,is_co_master,replication_credentials_available,has_replication_credentials,version_comment,major_version)VALUES('testhost',22293,'2017-02-02 08:29:57','2017-02-02 08:29:57','2017-02-02 08:29:57',670447,1,'00022293-1111-1111-1111-111111111111','5.6.28-log',0,0,'STATEMENT',1,1,'mysql-bin.000167',137086726,'',0,0,0,0,0,'','',0,0,1,'',0,'',0,'',0,'','',NULL,NULL,0,0,3,'[{\"Hostname\":\"testhost\",\"Port\":22294},{\"Hostname\":\"testhost\",\"Port\":22297},{\"Hostname\":\"testhost\",\"Port\":22296}]','testhost:22293','testhost','ny','','',0,0,0,0,0,'MySQL Community Server (GPL)','5.6');
INSERTINTOdatabase_instance(hostname,port,last_checked,last_attempted_check,last_seen,uptime,server_id,server_uuid,version,binlog_server,read_only,binlog_format,log_bin,log_slave_updates,binary_log_file,binary_log_pos,master_host,master_port,slave_sql_running,slave_io_running,has_replication_filters,oracle_gtid,executed_gtid_set,gtid_purged,supports_oracle_gtid,mariadb_gtid,pseudo_gtid,master_log_file,read_master_log_pos,relay_master_log_file,exec_master_log_pos,relay_log_file,relay_log_pos,last_sql_error,last_io_error,seconds_behind_master,slave_lag_seconds,sql_delay,allow_tls,num_slave_hosts,slave_hosts,cluster_name,suggested_cluster_alias,data_center,physical_environment,instance_alias,semi_sync_enforced,replication_depth,is_co_master,replication_credentials_available,has_replication_credentials,version_comment,major_version)VALUES('testhost',22294,'2017-02-02 08:29:57','2017-02-02 08:29:57','2017-02-02 08:29:57',72466,101,'9a996060-6b8f-11e6-903f-6191b3cde928','5.6.28-log',0,0,'STATEMENT',1,1,'mysql-bin.000132',15931747,'testhost',22293,1,1,0,0,'','',0,0,1,'mysql-bin.000167',137086726,'mysql-bin.000167',137086726,'mysql-relay.000029',15978254,'\"\"','\"\"',0,0,0,0,1,'[{\"Hostname\":\"testhost\",\"Port\":22295}]','testhost:22293','','ny','','',0,1,0,0,1,'MySQL Community Server (GPL)','5.6');
INSERTINTOdatabase_instance(hostname,port,last_checked,last_attempted_check,last_seen,uptime,server_id,server_uuid,version,binlog_server,read_only,binlog_format,log_bin,log_slave_updates,binary_log_file,binary_log_pos,master_host,master_port,slave_sql_running,slave_io_running,has_replication_filters,oracle_gtid,executed_gtid_set,gtid_purged,supports_oracle_gtid,mariadb_gtid,pseudo_gtid,master_log_file,read_master_log_pos,relay_master_log_file,exec_master_log_pos,relay_log_file,relay_log_pos,last_sql_error,last_io_error,seconds_behind_master,slave_lag_seconds,sql_delay,allow_tls,num_slave_hosts,slave_hosts,cluster_name,suggested_cluster_alias,data_center,physical_environment,instance_alias,semi_sync_enforced,replication_depth,is_co_master,replication_credentials_available,has_replication_credentials,version_comment,major_version)VALUES('testhost',22295,'2017-02-02 08:29:57','2017-02-02 08:29:57','2017-02-02 08:29:57',670442,102,'9dc85926-6b8f-11e6-903f-85211507e568','5.6.28-log',0,0,'STATEMENT',1,1,'mysql-bin.000129',136688950,'testhost',22294,1,1,0,0,'','',0,0,1,'mysql-bin.000132',15931747,'mysql-bin.000132',15931747,'mysql-relay.000002',15868528,'\"\"','\"\"',0,0,0,0,0,'[]','testhost:22293','','ny','','',0,2,0,0,1,'MySQL Community Server (GPL)','5.6');
INSERTINTOdatabase_instance(hostname,port,last_checked,last_attempted_check,last_seen,uptime,server_id,server_uuid,version,binlog_server,read_only,binlog_format,log_bin,log_slave_updates,binary_log_file,binary_log_pos,master_host,master_port,slave_sql_running,slave_io_running,has_replication_filters,oracle_gtid,executed_gtid_set,gtid_purged,supports_oracle_gtid,mariadb_gtid,pseudo_gtid,master_log_file,read_master_log_pos,relay_master_log_file,exec_master_log_pos,relay_log_file,relay_log_pos,last_sql_error,last_io_error,seconds_behind_master,slave_lag_seconds,sql_delay,allow_tls,num_slave_hosts,slave_hosts,cluster_name,suggested_cluster_alias,data_center,physical_environment,instance_alias,semi_sync_enforced,replication_depth,is_co_master,replication_credentials_available,has_replication_credentials,version_comment,major_version)VALUES('testhost',22296,'2017-02-02 08:29:57','2017-02-02 08:29:57','2017-02-02 08:29:57',670438,103,'00022296-4444-4444-4444-444444444444','5.6.28',0,0,'STATEMENT',0,1,'',0,'testhost',22293,1,1,0,0,'','',0,0,1,'mysql-bin.000167',137086726,'mysql-bin.000167',137086726,'mysql-relay.000052',137086889,'\"\"','\"\"',0,0,0,0,0,'[]','testhost:22293','','ny','','',0,1,0,0,1,'MySQL Community Server (GPL)','5.6');
INSERTINTOdatabase_instance(hostname,port,last_checked,last_attempted_check,last_seen,uptime,server_id,server_uuid,version,binlog_server,read_only,binlog_format,log_bin,log_slave_updates,binary_log_file,binary_log_pos,master_host,master_port,slave_sql_running,slave_io_running,has_replication_filters,oracle_gtid,executed_gtid_set,gtid_purged,supports_oracle_gtid,mariadb_gtid,pseudo_gtid,master_log_file,read_master_log_pos,relay_master_log_file,exec_master_log_pos,relay_log_file,relay_log_pos,last_sql_error,last_io_error,seconds_behind_master,slave_lag_seconds,sql_delay,allow_tls,num_slave_hosts,slave_hosts,cluster_name,suggested_cluster_alias,data_center,physical_environment,instance_alias,semi_sync_enforced,replication_depth,is_co_master,replication_credentials_available,has_replication_credentials,version_comment,major_version)VALUES('testhost',22297,'2017-02-02 08:29:57','2017-02-02 08:29:57','2017-02-02 08:29:57',670435,104,'00022297-5555-5555-5555-555555555555','5.6.28-log',0,0,'STATEMENT',1,1,'mysql-bin.001013',106518535,'testhost',22293,1,1,0,0,'','',0,0,1,'mysql-bin.000167',137086726,'mysql-bin.000167',137086726,'mysql-relay.000041',86111934,'\"\"','\"\"',0,0,0,0,0,'[]','testhost:22293','','seattle','','',0,1,0,0,1,'MySQL Community Server (GPL)','5.6');