MEDIUM: vars: Add a per-process scope for variables
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 9 Nov 2016 10:36:17 +0000 (11:36 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 9 Nov 2016 21:57:00 +0000 (22:57 +0100)
commitff2613ed7adfe5b186fefbab49c9df7978418e2f
tree9d7fb65193006af57c6625ba88d522973af5d32b
parent09c9df286b0343cd665328c95241a3f2d9b14f2f
MEDIUM: vars: Add a per-process scope for variables

Now it is possible to use variables attached to a process. The scope name is
'proc'. These variables are released only when HAProxy is stopped.

'tune.vars.proc-max-size' directive has been added to confiure the maximum
amount of memory used by "proc" variables. And because memory accounting is
hierachical for variables, memory for "proc" vars includes memory for "sess"
vars.
doc/configuration.txt
include/types/global.h
include/types/vars.h
src/haproxy.c
src/vars.c