Re: Backend Server UP/Down Debugging?

From: Dmitry Sivachenko <mitya#cavia.pp.ru>
Date: Thu, 27 Aug 2009 13:10:35 +0400


On Thu, Aug 27, 2009 at 08:45:23AM +0200, Krzysztof Oledzki wrote:
> > On Wed, Aug 26, 2009 at 02:00:42PM -0700, Jonah Horowitz wrote:
> >> I???m watching my servers on the back end and occasionally they flap. I???m wondering if there is a way to see why they are taken out of service. I???d like to see the actual response, or at least a HTTP status code.
> >
> > right now it's not archived. I would like to keep a local copy of
> > the last request sent and response received which caused a state
> > change, but that's not implemented yet. I wanted to clean up the
> > stats socket first, but now I realize that we could keep at least
> > some info (eg: HTTP status, timeout, ...) in the server struct
> > itself and report it in the log. Nothing of that is performed right
> > now, so you may have to tcpdump at best :-(
>
> As always, I have a patch for that, solving it nearly exactly like you
> described it. ;) However for the last half year I have been rather silent,
> mostly because it is very important time in my private life, so I think
> I'm partially excused. ;) I know that there are some unfinished tasks (acl
> for exapmple) so I'll try to push ASAP, maybe starting from the easier
> patches, likt this ones. The rest will have to wait when I get back from
> honeymoon.

I see flapping servers in my logs too and also have no clue why haproxy disables them.

If you have a patch to log the reason why the particular server was disabled, I'd love to test it (I run 1.4-dev2).

Thanks. Received on 2009/08/27 11:10

This archive was generated by hypermail 2.2.0 : 2009/08/27 11:15 CEST