@jmyoda79 wrote:
I'm trying to test HAPRoxy to see if it would work well for a project ... however I can't seem to get it to start properly and I'm not entirely sure where I'm going wrong. I'm running this on an Ubuntu 16.04 system just for testing purposes on a private network. I installed it via apt and the HAProxy version that was installed was 1.6.13. I start haproxy and it says it started ... but nothing ever happens. It never binds the port (according to netstat), never throws an errors (according the haproxy log or debug), and doesn't do anything. I run haproxy manually with the -d flag and this is the results :
# /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid -d Available polling systems : epoll : pref=300, test result OK poll : pref=200, test result OK select : pref=150, test result OK Total: 3 (3 usable), will use epoll. Using epoll() as the polling mechanism.
It never goes any further ... it just sits there with no other output. I've left it running for 10 - 15 minutes with no other output while I constantly try to connect to the port I specified in the cfg file (7032). The config passes the config check and here is the config that I have setup :
# /usr/sbin/haproxy -c -f /etc/haproxy/haproxy.cfg Configuration file is valid # cat /etc/haproxy/haproxy.cfg global log 127.0.0.1 local0 log 127.0.0.1 local1 notice maxconn 392 user haproxy group haproxy daemon defaults log global retries 2 timeout connect 3000 timeout server 5000 timeout client 5000 listen mysql-cluster bind *:7032 mode tcp option mysql-check balance roundrobin server innodbNode1 192.168.1.111:3306 check server innodbNode2 192.168.1.112:3306 check server innodbNode3 192.168.1.113:3306 check
I'm really not sure what I'm doing wrong here ... I've got no errors, no problem indicated, yet nothing works. Could someone please point me in the direction of what I'm doing wrong?
Posts: 2
Participants: 1