Commit 0d7eec76 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Fix the default thread pool parameters to 2 pools, 500 threads and 300 seconds.

Add usage for -u while here.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2753 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent de4df588
......@@ -477,7 +477,7 @@ static const struct parspec parspec[] = {
"Can be increased on the fly, but decreases require a "
"restart to take effect.",
EXPERIMENTAL | DELAYED_EFFECT,
"1", "pools" },
"2", "pools" },
{ "thread_pool_max", tweak_thread_pool_max, NULL, 1, 0,
"The maximum number of worker threads in all pools combined.\n"
"\n"
......@@ -485,7 +485,7 @@ static const struct parspec parspec[] = {
"worker threads soak up RAM and CPU and generally just get "
"in the way of getting work done.\n",
EXPERIMENTAL | DELAYED_EFFECT,
"100", "threads" },
"500", "threads" },
{ "thread_pool_min", tweak_thread_pool_min, NULL, 1, 0,
"The minimum number of threads in all worker pools combined.\n"
"\n"
......
......@@ -157,14 +157,9 @@ usage(void)
fprintf(stderr, FMT, "-w int[,int[,int]]", "Number of worker threads");
fprintf(stderr, FMT, "", " -w <fixed_count>");
fprintf(stderr, FMT, "", " -w min,max");
fprintf(stderr, FMT, "", " -w min,max,timeout [default: -w1,1000,120]");
fprintf(stderr, FMT, "", " -w min,max,timeout [default: -w2,500,300]");
fprintf(stderr, FMT, "-u user", "Priviledge separation user id");
#undef FMT
#if 0
-c clusterid@cluster_controller
-m memory_limit
-u uid
-a CLI_port
#endif
exit(1);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment