Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

Discovery doesn't discover in extremely simple setup #1492

@unixtastic

Description

@unixtastic

Orchestrator discovery only functions if manually run on all nodes starting at the master and working down the tree. I tried Orchestrator 3.2.6 on Ubuntu 18.04 and 22.04. All test Mysql servers are Percona 5.7.43-47 and are correctly replicating.

orchestrator.conf.json:

{
  "Debug": false,
  "MySQLTopologyUser": "orchestrator",
  "MySQLTopologyPassword": "orch_topology_password",
  "DiscoverByShowSlaveHosts": true,
  "InstancePollSeconds": 5,
  "BackendDB": "sqlite",
  "SQLite3DataFile": "/usr/local/orchestrator/orchestrator.sqlite3",
  "MySQLTopologySSLSkipVerify": true,
  "MySQLTopologyUseMutualTLS": false
}

mysql.cnf:

[mysqld]
server_id = 83
character-set-server = utf8
log_bin = /var/lib/mysql/binary/mysqld-bin.log
report_host = ip-10-200-1-83.eu-west-1.compute.internal
log_slave_updates = 1
master_info_repository = 'TABLE'

Mysql server_id and UUID is unique for each server.

If I turn debug on I see orchestrator is pulling information from SHOW SLAVE HOSTS on the master:

root@ip-10-200-1-119:/usr/local/orchestrator# orchestrator -c discover -i ip-10-200-1-109:3306
2023-09-09 14:07:40 DEBUG Hostname unresolved yet: ip-10-200-1-109
2023-09-09 14:07:40 DEBUG Cache hostname resolve ip-10-200-1-109 as ip-10-200-1-109
2023-09-09 14:07:40 DEBUG Connected to orchestrator backend: sqlite on /usr/local/orchestrator/orchestrator.sqlite3
2023-09-09 14:07:40 DEBUG Initializing orchestrator
2023-09-09 14:07:40 INFO Connecting to backend :3306: maxConnections: 128, maxIdleConns: 32
2023-09-09 14:07:40 DEBUG Hostname unresolved yet: ip-10-200-1-83.eu-west-1.compute.internal
2023-09-09 14:07:40 DEBUG Cache hostname resolve ip-10-200-1-83.eu-west-1.compute.internal as ip-10-200-1-83.eu-west-1.compute.internal
2023-09-09 14:07:40 DEBUG Hostname unresolved yet: ip-10-200-1-183.eu-west-1.compute.internal
2023-09-09 14:07:40 DEBUG Cache hostname resolve ip-10-200-1-183.eu-west-1.compute.internal as ip-10-200-1-183.eu-west-1.compute.internal
ip-10-200-1-109:3306

Yet the topology only lists the master and none of it's slaves:

ip-10-200-1-109:3306 [unknown,unchecked,5.7.43-47-log,rw,ROW,>>]

The user account for orchestrator and the account for replication is correctly setup on all servers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions