Hello folks !
I use haproxy 1.4.15 for loadbalancing many virtual servers on a pair of
XenServer, and it works beautifully.
Two of these VMs are FTP servers, more precisely PureFTPD running on
Ubuntu 10.04 server.
It works perfectly, however, in a recempt attempt to duplicate the
architecture for another customer,
I tried versions 1.4.19 and 1.5-dev7, and both of them failed to work
with PureFtpd :

- From any VM I can ftp the pureftpd VMs (persee1 & 2) without any
problem
- If I ftp the HAProxy VM Ip, I don't even get a ftp banner.
- Using tcpdump on the ftp vm, I can see that HAProxy sends a packet to
pureftpd, which responds, but
it doesn't seem to be forwarded.
Again, everything works with 1.4.15.

Is this a known problem ?

Sorry I cannot provide more details, I encountered the issue weeks ago
and don't have time to investigate
in it for now (and I didn't write thnings down - shame on me) but I
wanted to let you know of a potential bug.

Best Regards,
Jérémy Longo

Kernel : 2.6.32-38-generic #83-Ubuntu SMP

Working haproxy :
HA-Proxy version 1.4.15 2011/04/08
Build options :
  TARGET  = linux26
  CPU     = generic
  CC      = gcc
  CFLAGS  = -O2 -g -fno-strict-aliasing
  OPTIONS = USE_PCRE=1

NON-Working haproxy :
HA-Proxy version 1.4.19 2012/01/07
& HA-Proxy version 1.5-dev7 2011/09/10
Build options :
  TARGET  = linux26
  CPU     = generic
  CC      = gcc
  CFLAGS  = -O2 -g -fno-strict-aliasing
  OPTIONS = USE_STATIC_PCRE=1


Relevant Haproxy configuration :

global
        log 127.0.0.1   local0 notice
        maxconn 100000
        ulimit-n 300000
        nbproc 1
        daemon
        spread-checks 5
        stats socket /var/run/haproxy.sock mode 0600 level admin
defaults
        log     global
        mode    http
        retries 3
        option redispatch
        timeout connect 5s
        timeout client  50s
        timeout server  50s
listen admin_page 172.20.0.3:3307
        mode http
        balance roundrobin
        stats uri /
listen statssummary_page 172.20.0.3:3308
        mode http
        stats hide-version
        stats uri /
        stats scope pureftpd_backend
## PUREFTPD
frontend pureftpd
    mode tcp
    timeout client 1h
    bind publicip:21,publicip:990,publicip:50000-50400
    default_backend pureftpd_backend
backend pureftpd_backend
    mode tcp
    timeout server 1h
    server persee1 172.16.0.11 check port 21 inter 10s rise 1 fall 2
    server persee2 172.16.0.12 check port 21 inter 10s backup

Reply via email to