diff options
Diffstat (limited to 'container-core/src/main/resources/configdefinitions/container.handler.threadpool.def')
-rw-r--r-- | container-core/src/main/resources/configdefinitions/container.handler.threadpool.def | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/container-core/src/main/resources/configdefinitions/container.handler.threadpool.def b/container-core/src/main/resources/configdefinitions/container.handler.threadpool.def new file mode 100644 index 00000000000..d966738ea9f --- /dev/null +++ b/container-core/src/main/resources/configdefinitions/container.handler.threadpool.def @@ -0,0 +1,27 @@ +# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. + +namespace=container.handler + +## Maximum number 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 + +# The number of threads to keep in the pool, even if they are idle +corePoolSize int default=500 + +# The number of seconds that excess idle threads will wait for new tasks before terminating +keepAliveTime double default=5.0 + +## 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" +maxThreadExecutionTimeSeconds int default=190 + +# Prefix for the name of the threads +name string default="default-pool" |