Re: How difficult would it be to add a link on the stats page to "clear stats"?

From: Willy Tarreau <w#1wt.eu>
Date: Mon, 30 Jun 2008 22:02:56 +0200


Hi Bryan,

On Mon, Jun 30, 2008 at 03:09:43PM -0400, Brian Gupta wrote:
> I know we can do this by restarting haproxy, but it would be a great
> feature to be able to clear stats, without restarting from the stats
> page. (On a per stats page basis, not for the entire daemon).

It should not be too hard, but in the current state of the stats page, I don't want to. The reason is simple : the page is not secure. It asks for a basic auth (clear text), so it is not acceptable to let anyone clear the stats.

However, I see a perfect place for this : the control socket (which does not exist yet) which will be used to turn servers on/off. This will be a UNIX socket, just like the current stats socket. It will require some controls (possibly authentication) before accepting commands from other processes.

Regards,
Willy Received on 2008/06/30 22:02

This archive was generated by hypermail 2.2.0 : 2008/06/30 22:16 CEST