]> git.kaiwu.me - haproxy.git/commit
DEBUG: support reading set-dumpable from HAPROXY_FORCE_DUMPABLE
authorWilly Tarreau <w@1wt.eu>
Tue, 6 Oct 2026 08:10:02 +0000 (10:10 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 6 Oct 2026 08:10:02 +0000 (10:10 +0200)
commitbd884a20377963fda9031c878ec4020b84da1f77
tree7c52e82e8b8bcbddcb1df7b60af8b1714080aa7a
parente4d1b143ba49b2364172395410f8b3da17caf9ae
DEBUG: support reading set-dumpable from HAPROXY_FORCE_DUMPABLE

When debugging regtests, it is super complicated to get a core to be
dumped. It often requires to place a set-dumpable directive in the
config, but when it's generated it's really not convenient. A better
approach in this case is to read the value from an environment variable.

That's what this patch does, by accepting to preset the set-dumpable
options from the contents of HAPROXY_FORCE_DUMPABLE. It's a bit more
relaxed, though, as it accepts "off" to stay disabled, "libs" to just
load the libs, and anything else to enable.

The config and management docs were updated. This could be backported
to older versions if found helpful.
doc/configuration.txt
doc/management.txt
src/haproxy.c