diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-04-25 18:57:12 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2020-04-25 18:57:12 +0000 |
commit | c7b890535a3009e52e7227b883f2c9a16e59a740 (patch) | |
tree | bb68bdc548c6715a495e5aa910ea8e45ff1469ad /container-core/src/main/resources | |
parent | 35decca41db6b9a44b24b6f7501c84d159ebd6a7 (diff) |
Let size of thread pool and Q follow number of cores on the machine where it is running.
If auto detected num worker threads will use number of #cores * 4, quesize will use #numWorkers * 4.
No changes of the default value in this commit.
Diffstat (limited to 'container-core/src/main/resources')
-rw-r--r-- | container-core/src/main/resources/configdefinitions/threadpool.def | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/container-core/src/main/resources/configdefinitions/threadpool.def b/container-core/src/main/resources/configdefinitions/threadpool.def index 9bb9badd9b5..abc60f9f06d 100644 --- a/container-core/src/main/resources/configdefinitions/threadpool.def +++ b/container-core/src/main/resources/configdefinitions/threadpool.def @@ -2,8 +2,16 @@ namespace=container.handler +## Num ber of thread in the thread pool +## Setting it to 0 or negative number will cause it to be set to #cores * 4 maxthreads int default=500 +## max queue size +## There can be queueSize + maxthreads requests inflight concurrently +## The container will start replying 503 +## Negative value will cause it to set to maxthreads*4 +queueSize int default=0 + # The max time the container tolerates having no threads available before it shuts down to # get out of a bad state. This should be set a bit higher than the expected max execution # time of each request when in a state of overload, i.e about "worst case execution time*2" |