We are running a setup that has gotten a lot of media attention these days and we expect the traffic to continue. We have 1 haproxy loadbalancer, 3 application servers(2 image, 1 general) and one databaseserver. The loadbalancer takes all the load and redirects based on url. The problem is that our application crashes or has really low response time every 10 min or so (on images its when the graph drops down). Do you guys know whats wrong? If you need more info ill provide it.
haproxy config:
global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
user haproxy
group haproxy
daemon
defaults
log global
mode tcp
option tcplog
option dontlognull
contimeout 5000
clitimeout 50000
srvtimeout 50000
errorfile 400 /etc/haproxy/errors/400.http
errorfile 403 /etc/haproxy/errors/403.http
errorfile 408 /etc/haproxy/errors/408.http
errorfile 500 /etc/haproxy/errors/500.http
errorfile 502 /etc/haproxy/errors/502.http
errorfile 503 /etc/haproxy/errors/503.http
errorfile 504 /etc/haproxy/errors/504.http
frontend http
bind *:80
mode http
option forwardfor
acl content_php path_end getImage.php
acl getMedia path_end getMedia.php
use_backend getImage if content_php
use_backend getImage if getMedia
default_backend backend
frontend monitoring
bind *:1234
mode http
stats enable
stats uri /
stats auth gobi:dlkjaDSgasd
backend backend
mode http
option forwardfor
balance source
option httpclose
server app1 10.129.75.237:80 check
backend getImage
mode http
option forwardfor
balance roundrobin
option httpclose
server image1 10.129.62.139:80 check
server image2 10.129.63.146:80 check
loadBalancer: databaseServer: generalServer: imageServer1: imageServer2: