On Wed, 10 Jul 2024 at 21:30, Lukas Tribus <lu...@ltri.eu> wrote:
> There are ways to push defaults like this out if really needed: with
> default configuration files, like we have in examples/ and like
> distributions provide in their repositories. This default the users
> will then find in the configuration file and can look it up in the
> documentation if they want.


So here a few proposals:

Proposal 1:

- remove fd-hard-limit as it was a confusing mistake in the first place
- exit with a configuration error when global maxconn is not set
- put global maxconn in all example configurations, encourage
Debian/RH to do the same
- document accordingly


Proposal 2:

- keep fd-hard-limit
- exit with a configuration error when fd-hard-limit needs to guess 1M
- put fd-hard-limit in all example configurations, encourage Debian/RH
to do the same
- document accordingly



Otherwise the next bug report will be that haproxy OOM's (in
production and only when encountering load) by default with systems
with less than 16 GB of RAM. The same bug reporter just needs a VM
with 8 GB RAM or less.



Sometimes the hard choices need to be up to the user. I believe this
is some of those times.


cheers
lukas

Reply via email to