Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
14a09925
Commit
14a09925
authored
May 13, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make thread_pool_max and thread_pool_min consistent so they both
apply to individual pools.
parent
4ef7a77f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
cache_pool.c
bin/varnishd/cache_pool.c
+1
-1
mgt_pool.c
bin/varnishd/mgt_pool.c
+2
-2
No files found.
bin/varnishd/cache_pool.c
View file @
14a09925
...
...
@@ -436,7 +436,7 @@ wrk_herdtimer_thread(void *priv)
/* Scale parameters */
u
=
params
->
wthread_max
/
nwq
;
u
=
params
->
wthread_max
;
if
(
u
<
params
->
wthread_min
)
u
=
params
->
wthread_min
;
nthr_max
=
u
;
...
...
bin/varnishd/mgt_pool.c
View file @
14a09925
...
...
@@ -121,7 +121,7 @@ const struct parspec WRK_parspec[] = {
EXPERIMENTAL
|
DELAYED_EFFECT
,
"2"
,
"pools"
},
{
"thread_pool_max"
,
tweak_thread_pool_max
,
NULL
,
1
,
0
,
"The maximum number of worker threads in
all pools combined
.
\n
"
"The maximum number of worker threads in
each pool
.
\n
"
"
\n
"
"Do not set this higher than you have to, since excess "
"worker threads soak up RAM and CPU and generally just get "
...
...
@@ -129,7 +129,7 @@ const struct parspec WRK_parspec[] = {
EXPERIMENTAL
|
DELAYED_EFFECT
,
"500"
,
"threads"
},
{
"thread_pool_min"
,
tweak_thread_pool_min
,
NULL
,
2
,
0
,
"The minimum number of threads in each
worker
pool.
\n
"
"The minimum number of threads in each pool.
\n
"
"
\n
"
"Increasing this may help ramp up faster from low load "
"situations where threads have expired.
\n
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment