Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Diffrent Port 3307 #33

Open
NA7KR opened this issue Apr 4, 2022 · 1 comment
Open

Diffrent Port 3307 #33

NA7KR opened this issue Apr 4, 2022 · 1 comment

Comments

@NA7KR
Copy link

NA7KR commented Apr 4, 2022

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
Copy link

dgeo commented Jun 10, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants