On 5 April 2011 06:47, Willy Tarreau <[email protected]> wrote:

> Hi John,
>
> On Wed, Mar 30, 2011 at 12:42:28PM +0100, John Helliwell wrote:
> > Hi all,
> >
> > We are using HAproxy as a L7 load balancer on our busy phpBB3 based
> forums,
> > and we are finding it excellent.
> > We would like to upgrade to haproxy-1.5-dev in order to use the rate
> > limiting as described in http://blog.serverfault.com/post/1016491873/
> >
> > However, this has not been possible, due to the fact that in
> haproxy-1.5-dev
> > the httpchk fails, and all backend servers are marked down.
> >
> > Mar 30 11:30:19 localhost haproxy[24995]: Server
> to-slow-queue/forum-admin1
> > is DOWN, reason: Socket error, info: "Invalid argument", check duration:
> > 0ms. 1 active and 0 backup servers left. 0 sessions active, 0 requeued, 0
> > remaining in queue.
> >
> > Also, it cannot syslog due to
> >
> > [ALERT] 088/120607 (26987) : sendto logger #0 failed: Invalid argument
> > (errno=22)
> >
> > The relevant config extract for this is
> > defaults
> >    option httpchk GET /health.html
> >
> > backend webservers
> >     server forum-web1 172.16.50.192:80 minconn 6 maxconn 10 weight 12
> check
> > inter 2s fastinter 500ms downinter 10s slowstart 60000
> >
> > The machine is a Sun Fire V125 with an UltraSPARC-IIIi processor,
> compiled
> > locally using gcc version 3.4.3 using
> > gmake TARGET=solaris ARCH=ultrasparc USE_PCRE=1
> >
> > I can provide full haproxy.cfg if required.
> >
> > Is this a known issue? I hope someone can assist.
>
> It's still unknown. Are you seeing that only with 1.5-dev ? Also the fact
> that it fails on the syslog too is strange. It looks like it doesn't like
> one of the flags passed to send().
>
> Could you run it through truss and send the output ?
>
> Thanks,
> Willy
>
>
Hi Willy,

Thanks, I've started the 1.5dev5 daemon, and copied what I think is relevant
from the truss output
pollsys(0x004DAD00, 4, 0xFFBFFCA0, 0x00000000)  = 1
accept(7, 0xFFBFFB98, 0xFFBFFB94, SOV_DEFAULT)  = 0
fcntl(0, F_SETFL, FNONBLOCK)                    = 0
setsockopt(0, tcp, TCP_NODELAY, 0x0006F718, 4, SOV_DEFAULT) = 0
accept(7, 0xFFBFFB98, 0xFFBFFB94, SOV_DEFAULT)  Err#11 EAGAIN
pollsys(0x004DAD00, 5, 0xFFBFFCA0, 0x00000000)  = 1
recv(0, " G E T   /   H T T P / 1".., 8192, 0)  = 341
getsockopt(0, SOL_SOCKET, SO_ERROR, 0xFFBFFAB4, 0xFFBFFAB0, SOV_DEFAULT) = 0
send(0, " H T T P / 1 . 0   2 0 0".., 12682, 128) = 12682
pollsys(0x004DAD00, 5, 0xFFBFFCA0, 0x00000000)  = 0
getsockopt(0, SOL_SOCKET, SO_ERROR, 0xFFBFFAB4, 0xFFBFFAB0, SOV_DEFAULT) = 0
send(0, " < t r   c l a s s = " a".., 12438, 128) = 12438
pollsys(0x004DAD00, 5, 0xFFBFFCA0, 0x00000000)  = 0
pollsys(0x004DAD00, 5, 0xFFBFFCA0, 0x00000000)  = 0
pollsys(0x004DAD00, 5, 0xFFBFFCA0, 0x00000000)  = 1
getsockopt(0, SOL_SOCKET, SO_ERROR, 0xFFBFFC24, 0xFFBFFC20, SOV_DEFAULT) = 0
send(0, " < t r   c l a s s = " b".., 770, 128) = 770
shutdown(0, SHUT_WR, SOV_DEFAULT)               = 0
close(0)                                        = 0
sendto(5, " < 1 3 1 > A p r     5  ".., 172, 128, 0x00124598, 256) Err#22
EINVAL
sendto(5, " < 1 3 9 > A p r     5  ".., 172, 128, 0x00124698, 256) Err#22
EINVAL
pollsys(0x004DAD00, 4, 0xFFBFFCA0, 0x00000000)  = 0
so_socket(PF_INET, SOCK_STREAM, IPPROTO_TCP, "", SOV_DEFAULT) = 0
fcntl(0, F_SETFL, FNONBLOCK)                    = 0
setsockopt(0, tcp, TCP_NODELAY, 0x0006F718, 4, SOV_DEFAULT) = 0
connect(0, 0xFFBFFB98, 256, SOV_DEFAULT)        Err#22 EINVAL
close(0)                                        = 0
pollsys(0x004DAD00, 4, 0xFFBFFCA0, 0x00000000)  = 0
so_socket(PF_INET, SOCK_STREAM, IPPROTO_TCP, "", SOV_DEFAULT) = 0
fcntl(0, F_SETFL, FNONBLOCK)                    = 0
setsockopt(0, tcp, TCP_NODELAY, 0x0006F718, 4, SOV_DEFAULT) = 0
connect(0, 0xFFBFFB98, 256, SOV_DEFAULT)        Err#22 EINVAL
close(0)                                        = 0

It basically does this in a loop.

Thanks for looking :)

Regards

John.

-- 
John Helliwell

Reply via email to