On Wed, Oct 21, 2009 at 10:49:44AM +0100, Matt wrote:
> Does anyone else have trouble with the haproxy stats page returning not found?
>
> Running on CentOS 5.3 version 1.3.19 from EPEL rpm
>
> I have the following in my config
>
> stats enable
> stats hide-version
> stats auth admin:admin
> stats uri /admin?stats
> stats refresh 5s
>
> I can usually see the stats page for a couple of minutes, but then
> it's not found. haproxy is still running and proxing requests. If I
> keep on hitting the page sometimes it comes back.
>
> Anyone else had this issue?
You're probably missing "option httpclose", so the connection stays alive but haproxy forwards any subsequent request to the application server and does not intercept them.
> It's preventing use for production as I need to be able to query the
> page for the csv output.
If you use it for monitoring, you should really have a dedicated port for stats. It will help you a lot to distinguish between production traffic and monitoring traffic when reading stats and/or logs.
Regards,
Willy
Received on 2009/10/21 12:08
This archive was generated by hypermail 2.2.0 : 2009/10/21 12:15 CEST