]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: config: limit nbproc to the machine's word size
authorWilly Tarreau <w@1wt.eu>
Fri, 18 Jan 2013 10:29:29 +0000 (11:29 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 May 2014 17:16:26 +0000 (19:16 +0200)
commita9db57ec5c7f786f8d856354fa56ec9134c5fe83
tree1e66c663aa425e866c6d04541225b7bbe0cee114
parent3507d5d09676239b68d3620441814fe8483bd265
MEDIUM: config: limit nbproc to the machine's word size

Some consistency checks cannot be performed between frontends, backends
and peers at the moment because there is no way to check for intersection
between processes bound to some processes when the number of processes is
higher than the number of bits in a word.

So first, let's limit the number of processes to the machine's word size.
This means nbproc will be limited to 32 on 32-bit machines and 64 on 64-bit
machines. This is far more than enough considering that configs rarely go
above 16 processes due to scalability and management issues, so 32 or 64
should be fine.

This way we'll ensure we can always build a mask of all the processes a
section is bound to.
doc/configuration.txt
include/common/standard.h
include/types/global.h
include/types/proxy.h
src/cfgparse.c
src/dumpstats.c
src/haproxy.c