]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: startup: tune.renice.{startup,runtime} allow to change priorities
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 29 Mar 2022 05:53:31 +0000 (07:53 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Mon, 4 Nov 2024 16:48:58 +0000 (17:48 +0100)
commite75a019fba19f6ac0c5b2b76c9efd29cb0d5a952
treee240d5e713a54ecada14fa0dbc4712474015e2a7
parent2092199353295a46580404736e809dc4d3b274a2
MINOR: startup: tune.renice.{startup,runtime} allow to change priorities

This commit introduces the tune.renice.startup and tune.renice.runtime
global keywords that allows to change the priority with setpriority().

tune.renice.startup is parsed and applied in the worker or the standalone
process for configuration parsing. If this keyword is used alone, the
nice value is changed to the previous one after configuration parsing.

tune.renice.runtime is applied after configuration parsing, so in the
worker or a standalone process. Combined with tune.renice.startup it
allows to have a different nice value during configuration parsing and
during runtime.

The feature was discussed in github issue #1919.

Example:

   global
        tune.renice.startup 15
        tune.renice.runtime 0
doc/configuration.txt
include/haproxy/global-t.h
src/cfgparse-global.c
src/haproxy.c