olafz / percona-clustercheck

Script to make a proxy (ie HAProxy) capable of monitoring Percona XtraDB Cluster nodes properly. The clustercheck script is distributed under the BSD license.
BSD 3-Clause "New" or "Revised" License
173 stars 108 forks source link

Diffrent Port 3307 #33

Open NA7KR opened 2 years ago

NA7KR commented 2 years ago

I run mysql on port 3307 how can make the script work?

/etc/haproxy/haproxy.cfg

I have like: ... listen percona-cluster 0.0.0.0:3306 balance leastconn option httpchk mode tcp server node1 1.2.3.4:3307 check port 9200 inter 5000 fastinter 2000 rise 2 fall 2 server node2 1.2.3.5:3307 check port 9200 inter 5000 fastinter 2000 rise 2 fall 2 server node3 1.2.3.6:3307 check port 9200 inter 5000 fastinter 2000 rise 2 fall 2 backup

dgeo commented 2 years ago

use a custom my.cnf and pass it as the 6th arg of the script

[client]
port = 3307

clustercheck clustercheckuser clustercheckpassword 0 /dev/null -1 /somewhere/my.cnf