I am running percona-xtradb 8.0.21 in a docker container. I am trying to configure haproxy to load balance but can’t quite get it. I’m following this
https://www.percona.com/doc/percona-xtradb-cluster/LATEST/howtos/haproxy.html
and this
I can run the clustercheck script as such
docker exec -it percona-xtradb clustercheck clusteradmin ****
and get the 200 OK (Percona XtraDB Cluster Node is synced.) response
but can’t quite figure it out the mysqlchk part. I have dropped the mysqlchk file in /etc/xinetd.d inside the container and restarted it, however I do not see 9200 listening on the container host. I do see 3306 and can make remote mysql connections into mysql running in the container.
I do not see any xinetd service unit.
Should I pull mysqlchk and clustercheck out of the container and run on the container host?
Maybe proxysql is the way to go. Just figured it would be nice to know how others have done it with haproxy.
Thanks