On Wed, Jul 25, 2012 at 05:14:38PM +0200, Stojan Rancic (Iprom) wrote:
> On 25.7.2012 15:12, Vincent Bernat wrote:
> >  ??? 25 juillet 2012 12:00 CEST, "Stojan Rancic (Iprom)" 
> >  <[email protected]> :
> >
> >>is it possible to create a stats socket (or per-process stats socket)
> >>when haproxy is configured with 'nbproc=2' or higher ?
> >
> >Hi!
> >
> >I am unsure if this is possible with a socket. However, you can do it
> >for the web interface.
> 
> It looks like it's only possible to configure the socket in the global 
> configuration section. Thanks for the hint anyway :)

Indeed we can't do this with the global stats sock. I remember having
been thinking about doing something as simple as auto-numbering to have
multiple sockets (one per process) but in the process of doing so, I
faced some issues related to the reloading process, so in the end I
gave up.

Instead I would rather implement cross-process bounces, eg you connect
to a socket on any process, then type "enter XX" where "XX" is the ID
of another process, then haproxy will simply proxy the request to the
other process via an internal socket. Just needs a bit of time to be
done, as usual :-)

Regards,
Willy


Reply via email to