Dear Users,
i'm new with haproxy,
and i recently installed haproxy as TCP load balancer for application
server ( TCP base ),
the problem is, the client that connected to haproxy keep reconnecting
at random time ( above 10 minutes )
when there is now data flowing ( idle state ),
i tried setting the haproxy idle timeout to 8h.. but the client keep
reconnecting ( the application server sending
heartbeat to the client every 10 minutes ).
here is the haproxy configuration :
global
log 127.0.0.1 local0 debug
maxconn 4096
# ulimit-n 1024
uid 1
gid 1
daemon
pidfile /var/run/haproxy.pid
listen stats :8081
balance
mode http
stats enable
stats auth zen:angina
stats refresh 5s
listen HPX :5150 ##bind to all interfaces##
mode tcp
option tcplog
timeout client 8h
timeout connect 8h
srvtimeout 8h
timeout check 6h
option abortonclose
retries 3
log global
balance roundrobin
server piglet 192.168.5.18:5150 check maxconn 1000
server tigger 192.168.5.30:5150 check maxconn 1000
----end---
as you can see, there the config almost minimal
please someone could enlighten me so i can solve these problems...
TIA
ZeN