]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: config: check the bind-process settings according to nbproc
authorWilly Tarreau <w@1wt.eu>
Wed, 7 May 2014 21:56:38 +0000 (23:56 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 May 2014 17:16:26 +0000 (19:16 +0200)
commit102df613a9e29eca811f3254b4aa9dbbbd17f63f
tree5780737858c5cfd771d9e57adbedbfc5fe54a03c
parenta9db57ec5c7f786f8d856354fa56ec9134c5fe83
MEDIUM: config: check the bind-process settings according to nbproc

When a bind-process setting is present in a frontend or backend, we
now verify that the specified process range at least shares one common
process with those defined globally by nbproc. Then if the value is
set, it is reduced to the one enforced by nbproc.

A warning is emitted if process count does not match, and the fix is
done the following way :
  - if a single process was specified in the range, it's remapped to
    process #1
  - if more than one process was specified, the binding is removed
    and all processes are usable.

Note that since backends may inherit their settings from frontends,
depending on the declaration order, they may or may not be reported
as warnings.
doc/configuration.txt
src/cfgparse.c