@jalilimhmd wrote:
Hi,
I configured 3 servers to act as proxy for mysql galera cluster.
And this is my haproxy config file on 3 servers.global log 127.0.0.1 local0 notice user haproxy group haproxy defaults log global retries 3 timeout connect 5000 timeout client 50000 timeout server 50000 # MySQL Load Balance Pool listen mysql-cluster bind 0.0.0.0:3306 mode tcp option mysql-check user haproxy_check balance roundrobin server st-cntrl 10.0.0.101:3306 check weight 1 server st-ctl02 10.0.0.102:3306 check weight 1 server st-ctl03 10.0.0.103:3306 check weight 1
The problem is when I test haproxy with command below, I get handshake error.
mysql -h 127.0.0.1 -u haproxy_root -p -e "SHOW DATABASES"
error:
ERROR 2013 (HY000): Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 11
What should I do to fix the issue.
P.S. mysql and haproxy and keepalived are on same servers.Regards,
Mohammad
Posts: 1
Participants: 1