Skip to content

Commit 565a860

Browse files
committed
add some doc to the thread-pool-executor props
Signed-off-by: Aleksandar Stanchev <[email protected]>
1 parent 8e91b1b commit 565a860

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

connectivity/service/src/main/resources/connectivity.conf

+20-6
Original file line numberDiff line numberDiff line change
@@ -1331,15 +1331,28 @@ http-push-connection-dispatcher {
13311331
# The core-pool-size-min remains unchanged so its quite small (8). Unused threads will expire after 60s.
13321332

13331333
thread-pool-executor {
1334+
# The core-pool-size-factor is used to determine corePoolSize of the
1335+
# ThreadPoolExecutor using the following formula:
1336+
# ceil(available processors * factor).
1337+
# Resulting size is then bounded by the core-pool-size-min and
1338+
# core-pool-size-max values.
1339+
# Increasing can help aleviate errors of type "Dropped message as result of backpressure strategy!" during high load.
13341340
core-pool-size-factor = 4
13351341
core-pool-size-factor = ${?HTTP_PUSH_CORE_POOL_SIZE_FACTOR}
1336-
core-pool-size-max = 64,
1342+
# Max number of threads to cap factor-based corePoolSize number to
1343+
core-pool-size-max = 64
13371344
core-pool-size-max = ${?HTTP_PUSH_CORE_POOL_SIZE_MAX}
1338-
max-pool-size-min= 64,
1339-
max-pool-size-min= ${?HTTP_PUSH_CORE_POOL_SIZE_MAX} # Overriding with the value of HTTP_PUSH_CORE_POOL_SIZE_MAX as if threads are a reason for http problems the pool normaly doesn't grow on its own so
1340-
# it is better to set the core upper limit manualy and this config will forse the core pool size to this value.
1341-
max-pool-size-max = 2147483647,
1342-
allow-core-timeout = on # Enables timeout of core threads
1345+
# Minimum number of threads to cap factor-based maximumPoolSize number to
1346+
max-pool-size-min= 64
1347+
max-pool-size-min= ${?HTTP_PUSH_POOL_SIZE_MAX}
1348+
# Max number of threads to cap factor-based maximumPoolSize number to
1349+
max-pool-size-max = 512
1350+
max-pool-size-max= ${?HTTP_PUSH_POOL_SIZE_MAX}
1351+
1352+
# Allow core threads to time out
1353+
allow-core-timeout = on
1354+
# Keep alive time for threads
1355+
keep-alive-time = 60s
13431356
}
13441357
}
13451358

@@ -1368,5 +1381,6 @@ blocked-namespaces-dispatcher {
13681381
throughput = 5
13691382
}
13701383

1384+
include "kamon.conf"
13711385
include "connectivity-extension.conf"
13721386
include file("/opt/ditto/connectivity-extension.conf")

0 commit comments

Comments
 (0)