]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] stats: add the ability to enable/disable/shutdown a frontend at runtime
authorWilly Tarreau <w@1wt.eu>
Wed, 7 Sep 2011 20:37:44 +0000 (22:37 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 7 Sep 2011 20:50:52 +0000 (22:50 +0200)
commit532a450ebcf3a5177471cbc86722fd0f483b6337
treea6fc1ae35f521cca8bcb3d32789b171e78592f80
parentc03ebbfca481687bfe04b12db064d89aedb6f4d7
[MEDIUM] stats: add the ability to enable/disable/shutdown a frontend at runtime

The stats socket now allows the admin to disable, enable or shutdown a frontend.
This can be used when a bug is discovered in a configuration and it's desirable
to fix it but the rules in place don't allow to change a running config. Thus it
becomes possible to kill the frontend to release the port and start a new one in
a separate process.

This can also be used to temporarily make haproxy return TCP resets to incoming
requests to pretend the service is not bound. For instance, this may be useful
to quickly flush a very deep SYN backlog.

The frontend check and lookup code was factored with the "set maxconn" usage.
doc/configuration.txt
include/proto/proxy.h
src/dumpstats.c