Skip to content

Commit

Permalink
Merge pull request #2139 from bosch-io/bugfix/http-dispatcher-config
Browse files Browse the repository at this point in the history
fix http-push-connection-dispatcher config overrides
  • Loading branch information
alstanchev authored Mar 5, 2025
2 parents bc44a86 + 864cf82 commit 179bb35
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions connectivity/service/src/main/resources/connectivity.conf
Original file line number Diff line number Diff line change
Expand Up @@ -1329,11 +1329,31 @@ http-push-connection-dispatcher {
# This executor is meant to be allowed to grow quite big as its limited by the max parallelism of each http connection client.
# Limit this parallelism here additionally could lead to confusing results regarding througput of some http connections.
# The core-pool-size-min remains unchanged so its quite small (8). Unused threads will expire after 60s.
core-pool-size-factor = 2147483647
core-pool-size-factor = ${?HTTP_PUSH_CORE_POOL_SIZE_FACTOR}

core-pool-size-max = 2147483647
core-pool-size-max = ${?HTTP_PUSH_CORE_POOL_SIZE_MAX}
thread-pool-executor {
# The core-pool-size-factor is used to determine corePoolSize of the
# ThreadPoolExecutor using the following formula:
# ceil(available processors * factor).
# Resulting size is then bounded by the core-pool-size-min and
# core-pool-size-max values.
# Increasing can help aleviate errors of type "Dropped message as result of backpressure strategy!" during high load.
core-pool-size-factor = 4
core-pool-size-factor = ${?HTTP_PUSH_CORE_POOL_SIZE_FACTOR}
# Max number of threads to cap factor-based corePoolSize number to
core-pool-size-max = 64
core-pool-size-max = ${?HTTP_PUSH_CORE_POOL_SIZE_MAX}
# Minimum number of threads to cap factor-based maximumPoolSize number to
max-pool-size-min= 64
max-pool-size-min= ${?HTTP_PUSH_POOL_SIZE_MAX}
# Max number of threads to cap factor-based maximumPoolSize number to
max-pool-size-max = 512
max-pool-size-max= ${?HTTP_PUSH_POOL_SIZE_MAX}

# Allow core threads to time out
allow-core-timeout = on
# Keep alive time for threads
keep-alive-time = 60s
}
}

kafka-consumer-dispatcher {
Expand Down

0 comments on commit 179bb35

Please sign in to comment.