percona-clustercheck icon indicating copy to clipboard operation
percona-clustercheck copied to clipboard

Diffrent Port 3307

Open NA7KR opened this issue 2 years ago • 1 comments

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

NA7KR avatar Apr 04 '22 02:04 NA7KR

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

dgeo avatar Jun 10 '22 09:06 dgeo