MINOR: pools: preset the allocation failure rate to 1% with -dMfail
authorWilly Tarreau <w@1wt.eu>
Tue, 21 Mar 2023 08:24:53 +0000 (09:24 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 21 Mar 2023 08:26:55 +0000 (09:26 +0100)
commit0c4348c982b73fa854de7c8cee5611cbfdd9db3c
tree7e5381eff02d36d48a686f0ee2824d5c0e6bdbab
parent69869e63545068761e1ebefbc80ec39399ce1104
MINOR: pools: preset the allocation failure rate to 1% with -dMfail

Using -dMfail alone does nothing unless tune.fail-alloc is set, which
renders it pretty useless as-is, and is not intuitive. Let's change
this so that the filure rate is preset to 1% when the option is set on
the command line. This allows to inject failures without having to edit
the configuration.
doc/configuration.txt
doc/management.txt
src/pool.c