the configuration file sees the new value. See also "presetenv", "resetenv",
and "unsetenv".
-shm-stats-file <name> [ EXPERIMENTAL ]
+shm-stats-file <name>
When this directive is set, it enables the use of shared memory for storing
stats counters. <name> is used as argument to shm_open() to open the shared
memory at a unique location. It also means that the directive is only
See also "guid", "guid-prefix" and "shm-stats-file-max-objects"
-shm-stats-file-max-objects <number> [ EXPERIMENTAL ]
+shm-stats-file-max-objects <number>
This setting defines the maximum number of objects the shared memory used
for shared counters will be able to store per thread group. It is directly
related to the maximum memory size of the shm and is used to "premap" the
struct proxy *curpx, const struct proxy *defpx,
const char *file, int line, char **err)
{
- if (!experimental_directives_allowed) {
- memprintf(err, "'%s' directive is experimental, must be allowed via a global 'expose-experimental-directives'", args[0]);
- return -1;
- }
-
if (global.shm_stats_file != NULL) {
memprintf(err, "'%s' already specified.\n", args[0]);
return -1;
return -1;
}
- mark_tainted(TAINTED_CONFIG_EXP_KW_DECLARED);
global.shm_stats_file = strdup(args[1]);
return 0;
}
struct proxy *curpx, const struct proxy *defpx,
const char *file, int line, char **err)
{
- if (!experimental_directives_allowed) {
- memprintf(err, "'%s' directive is experimental, must be allowed via a global 'expose-experimental-directives'", args[0]);
- return -1;
- }
-
if (shm_stats_file_max_objects != -1) {
memprintf(err, "'%s' already specified.\n", args[0]);
return -1;
return -1;
}
- mark_tainted(TAINTED_CONFIG_EXP_KW_DECLARED);
shm_stats_file_max_objects = atoi(args[1]);
return 0;
}