This project is percona-clustercheck like checker rewrited to Golang.
Program to make a proxy (ie HAProxy) capable of monitoring Percona XtraDB Cluster nodes properly.
Usage
Basic Haproxy config:
listen pxc
bind 127.0.0.1:3306
balance leastconn
option httpchk HEAD /
mode tcp
default-server inter 500 rise 5 fall 5
server node1 1.2.3.4:3306 check port 9200
server node2 1.2.3.5:3306 check port 9200
server node3 1.2.3.6:3306 check port 9200 backup
Setup
Create MySQL user:
create user 'pxc_checker'@'localhost' IDENTIFIED BY 'YourStrongPassword'; GRANT PROCESS ON *.* TO 'pxc_checker'@'localhost';
Get program binary. You can choose one of the following methods: