Greetings,
We recently deployed HAProxy in a virtualized environment.  I am having some
problems with occasional socket accept errors.  We are seeing the problems
primarily on the pure TCP load balancing portion of our configuration.  The
load balancer is running in the Rackspace Cloud under Xen. Basically what I
am seeing is that sockets never get nailed up, even though I am 110% sure
all the back-end servers are operating fine.  We have secondary monitoring
processes which are constantly setting up and tearing down sockets directly
(bypassing HAProxy) to ensure that the servers are up and running.  I have
provided our config and some other information below.  If anyone can point
me in the right direction for figuring out this issue, i would greatly
appreciate it.

Thanks!



uname -a
Linux globallb1 2.6.18-164.el5xen #1 SMP Thu Sep 3 04:41:04 EDT 2009 x86_64
x86_64 x86_64 GNU/Linux


HA-Proxy version 1.4.2 2010/03/17
Copyright 2000-2010 Willy Tarreau <[email protected]>

Build options :
  TARGET  = linux26
  CPU     = generic
  CC      = gcc
  CFLAGS  = -O2 -g
  OPTIONS = USE_REGPARM=1 USE_PCRE=1 USE_STATIC_PCRE=1

Default settings :
  maxconn = 2000, bufsize = 16384, maxrewrite = 8192, maxpollevents = 200

Encrypted password support via crypt(3): yes

Available polling systems :
     sepoll : pref=400,  test result OK
      epoll : pref=300,  test result OK
       poll : pref=200,  test result OK
     select : pref=150,  test result OK
Total: 4 (4 usable), will use sepoll.



/etc/haproxy.cfg
global
        maxconn     4096 # Total Max Connections. This is dependent on
ulimit
        daemon
        nbproc      4 # Number of processing cores. Dual Dual-core Opteron
is 4 cores for example.
        log 127.0.0.1 local0 debug

defaults
        mode         http
        clitimeout   300000
        srvtimeout   300000
        contimeout   4000
        log     global
        #option tcplog
        #option         httplog
        #option       httpclose # Disable Keepalive

listen  http_proxy 100.200.300.131:80
        mode http
        balance roundrobin # Load Balancing algorithm
        option httpchk
        option httpclose
        ## Define your servers to balance
        server rs-webserver1 100.200.300.217:80
        server rs-webserver2 100.200.300.216:80
        server rs-webserver3 100.200.300.136:80
        server rs-webserver4 100.200.300.220:80
        server rs-webserver5 100.200.300.126:80

listen  services 100.200.300.131:1312
        mode tcp
        balance roundrobin # Load Balancing algorithm
        option tcpka
        retries 3
        ## Define your servers to balance
        server rs-webserver1 100.200.300.217:1312
        server rs-webserver2 100.200.300.216:1312
        server rs-webserver3 100.200.300.136:1312
        server rs-webserver4 100.200.300.220:1312
        server rs-webserver5 100.200.300.126:1312


listen stats :8080
        mode http
        stats uri /

Reply via email to