aboutsummaryrefslogtreecommitdiffstats
path: root/container-core/src/main/resources/configdefinitions/container.handler.threadpool.container-threadpool.def
blob: 732912c728d54392531b4b74fff4572af8a43cc4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Copyright Vespa.ai. 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
## Negative value is interpreted as scale factor ( vcpu*abs(maxThreads) )
maxThreads int default=0

## Minimum number of thread in the thread pool
## 0 is translated to vcpu*2
## Negative value is interpreted as scale factor ( vcpu*abs(minThreads) )
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
## Negative value is interpreted as scale factor ( effectiveMaxThreads*abs(queueSize) )
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"