summaryrefslogtreecommitdiffstats
path: root/container-core/src/main/resources/configdefinitions
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@verizonmedia.com>2020-09-07 15:06:24 +0200
committerBjørn Christian Seime <bjorncs@verizonmedia.com>2020-09-07 15:06:24 +0200
commit9effe4b9825308b65bb8e3e69fec3941000c8c08 (patch)
treeb1dd1badbb830a58d070e4e2573f69d91c92a700 /container-core/src/main/resources/configdefinitions
parentc5c4891e072c4e9223f6e8851716f8cd863e9d97 (diff)
Use separate non-public config definition for ContainerThreadPool
Diffstat (limited to 'container-core/src/main/resources/configdefinitions')
-rw-r--r--container-core/src/main/resources/configdefinitions/container-threadpool.def25
1 files changed, 25 insertions, 0 deletions
diff --git a/container-core/src/main/resources/configdefinitions/container-threadpool.def b/container-core/src/main/resources/configdefinitions/container-threadpool.def
new file mode 100644
index 00000000000..9248bf2e2bf
--- /dev/null
+++ b/container-core/src/main/resources/configdefinitions/container-threadpool.def
@@ -0,0 +1,25 @@
+# Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+
+namespace=container.handler.threadpool
+
+## Maximum number of thread in the thread pool
+## 0 is translated to vcpu*4
+maxThreads int default=0
+
+## Minimum number of thread in the thread pool
+## 0 is translated to vcpu*2
+minThreads int default=0
+
+## The number of seconds that excess idle threads will wait for new tasks before terminating
+keepAliveTime double default=5.0
+
+## Max queue size
+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"