Open unixtastic opened 1 year ago
The test above was with AWS instances. I see the exact same issue with digital ocean VMs with all hostnames in /etc/hosts.
# orchestrator -c discover -i db1
db1:3306
# orchestrator -c topology -i db1
db1:3306 [0s,ok,5.7.43-47-log,rw,ROW,>>]
# orchestrator -c discover -i db2
db2:3306
# orchestrator -c topology -i db1
db1:3306 [unknown,unchecked,5.7.43-47-log,rw,ROW,>>]
+ db2:3306 [0s,ok,5.7.43-47-log,rw,ROW,>>]
Using a mysql 8 orchestrator backend instead of sqlite behaves the same way.
设置两个地方:
The changes suggested by jxs-2022 fixed it. I suggest updating the documentation.
If anyone can suggest a more active fork of this project I'd be grateful. I don't think anyone is approving PRs here.
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:
mysql.cnf:
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:
Yet the topology only lists the master and none of it's slaves:
The user account for orchestrator and the account for replication is correctly setup on all servers.