Skip to content
Permalink
Browse files

More semi-dynamic parameter defaults

  • Loading branch information
Dridi committed Mar 15, 2020
1 parent 28fe202 commit 230315e0b0f6a57859424aafd12d7193c00df16e
Showing with 5 additions and 3 deletions.
  1. +2 −1 bin/varnishd/mgt/mgt_param_tbl.c
  2. +3 −2 bin/varnishd/mgt/mgt_pool.c
@@ -55,7 +55,8 @@ struct parspec mgt_parspec[] = {
"dlopen(3) loadable object. Any occurrence of %s in "
"the string will be replaced with the source file name, "
"and %o will be replaced with the output file name.",
MUST_RELOAD },
MUST_RELOAD,
NULL, NULL, "defined when Varnish is built" },
{ "vcl_path", tweak_string, &mgt_vcl_path,
NULL, NULL, VARNISH_VCL_DIR,
NULL,
@@ -89,7 +89,7 @@ tweak_thread_pool_max(struct vsb *vsb, const struct parspec *par,

struct parspec WRK_parspec[] = {
{ "thread_pools", tweak_uint, &mgt_param.wthread_pools,
"1", NULL, "2",
"1", NULL, /* maximum defined in mgt_param.c */ "2",
"pools",
"Number of worker thread pools.\n"
"\n"
@@ -104,7 +104,8 @@ struct parspec WRK_parspec[] = {
"\n"
"Can be increased on the fly, but decreases require a "
"restart to take effect.",
EXPERIMENTAL | DELAYED_EFFECT },
EXPERIMENTAL | DELAYED_EFFECT,
NULL, "defined when Varnish is built" },
{ "thread_pool_max", tweak_thread_pool_max, &mgt_param.wthread_max,
NULL, NULL, "5000",
"threads",

0 comments on commit 230315e

Please sign in to comment.
You can’t perform that action at this time.