I have recently had a bit of luck in picking up a client who is meeting a large client tomorrow morning with some benchmarks of an optimised setup on Virt.IO, but unfortunately we still don't have any benchmarks as the pages are timing out. This is urgent work, so I can offer a small bounty in the form of either cash or LEB to anyone who comes up with the answer in good time.
The current setup is as follows:
Small VM running HAProxy as a load balancer
2x Medium VMs running Varnish on Port 80, Nginx on port 8080, in front of Apache.
1x Large VM running MySQL though this isn't currently in use as the pages we're testing with at the moment are static.
Currently, I can curl the public IP of the load balancer from the load balancer itself and it will get the Nginx default page, which is what we want at this stage.
From anywhere else, it takes several seconds and times out. I have tried to activate logging on HAProxy to syslogd but nothing is getting logged (see below).
haproxy.cfg:
global #uid 99 #gid 99 daemon stats socket /var/run/haproxy.stat mode 600 level admin maxconn 40000 ulimit-n 81000 log 127.0.0.1 local0 notice log 127.0.0.1 local1 pidfile /var/run/haproxy.pid defaults mode http contimeout 4000 clitimeout 42000 srvtimeout 43000 balance roundrobin listen webfarm 91.227.223.61:80 mode http stats enable stats auth admin:password balance roundrobin cookie web insert indirect nocache option httpclose option forwardfor option httpchk HEAD /check.txt HTTP/1.0 server webA 91.227.223.58:80 cookie A check server webB 91.227.221.121:80 cookie B check option forwardfor except 91.227.223.61 reqadd X-Forwarded-Proto:\ https reqadd FRONT_END_HTTPS:\ on log global listen stats :7777 stats enable stats uri / option httpclose stats auth admin:password
rsyslog.conf:
... # Save HA-Proxy logs local0.* /var/log/haproxy_0.log local1.* /var/log/haproxy_1.log
la -lah /var/log
... -rw------- 1 root root 0 Dec 23 12:29 haproxy -rw-r--r-- 1 root root 0 Dec 23 20:13 haproxy_0.log -rw-r--r-- 1 root root 0 Dec 23 20:13 haproxy_1.log ...
Let me know if anyone would like to see anything else.
Thanks in advance.