]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: config: properly adjust maxconn with nbproc when memmax is forced
authorWilly Tarreau <w@1wt.eu>
Mon, 14 Dec 2015 11:46:07 +0000 (12:46 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 14 Dec 2015 12:03:09 +0000 (13:03 +0100)
commit7006045e4884742dc401a23e2e65f9f2c63f3aa4
tree8b3ef934e939eac74545cd2dfad355d026620a77
parentb22fc30aaa6b39a95e190c3914af182a2aa6ecd2
BUG/MEDIUM: config: properly adjust maxconn with nbproc when memmax is forced

When memmax is forced using "-m", the per-process memory limit is enforced
using setrlimit(), but this value is not used to compute the automatic
maxconn limit. In addition, the per-process memory limit didn't consider
the fact that the shared SSL cache only needs to be accounted once.

The doc was also fixed to clearly state that "-m" is global and not per
process. It makes sense because people who use -m want to protect the
system's resources regardless of whatever appears in the configuration.
doc/management.txt
include/types/global.h
src/haproxy.c