Re: Rails app with maxconn 1 receiving more than 1 request at a time

From: Rupert Fiasco <rufiasco#gmail.com>
Date: Fri, 12 Sep 2008 17:44:37 -0700


The max conns on the stats seems to be crazy high.

http://brockwine.com/images/haproxy_stats.png

Also, what constitutes an error/warning? I seem to be seeing a lot of those as well. Does that mean by backend is returning a bunch of HTTP 500 or is it an internal haproxy error/warning?

Thanks
-Rupert

On Fri, Sep 12, 2008 at 5:15 PM, Brian Gupta <brian.gupta#gmail.com> wrote:
> Curious, what is the haproxy stats page reporting for maxconns for the
> individual backends? IE: Is haproxy also seeing peaks of high
> connection counts?
>
> -Brian
>
> On Fri, Sep 12, 2008 at 8:03 PM, Rupert Fiasco <rufiasco#gmail.com> wrote:
>> We are running 1.3.15.3 and have haproxy in front of a cluster of
>> mongrels. We have a plugin in the mongrels that displays the mongrels
>> current queue length.
>>
>> With a haproxy config line like:
>>
>> server server-0 127.0.0.1:9000 maxconn 1 check inter 30s slowstart 10s
>>
>> This should mean that haproxy will *NEVER* send more than 1 request to
>> that backend. Yet our plugin is reporting that it has sometimes 10+
>> requests queued up.
>>
>> Is my config wrong?
>>
>> Thanks
>> - Rupert
>>
>>
>
>
>
> --
> - Brian Gupta
>
> http://opensolaris.org/os/project/nycosug/
>
> http://www.genunix.org/wiki/index.php/OpenSolaris_New_User_FAQ
>
Received on 2008/09/13 02:44

This archive was generated by hypermail 2.2.0 : 2008/09/13 03:00 CEST