feat: Set the number of worker threads to start

This commit is contained in:
Carlos Álvaro
2022-01-01 14:32:13 +01:00
parent dfeea999ac
commit c2fb76fc53
6 changed files with 44 additions and 29 deletions

View File

@@ -25,6 +25,15 @@ cachedir: {{SALT_CACHE_DIR}}/master
extension_modules: {{SALT_CACHE_DIR}}/master/extmods
##### Large-scale tuning settings #####
##########################################
# The number of worker threads to start. These threads are used to manage
# return calls made from minions to the master. If the master seems to be
# running slowly, increase the number of threads. This setting can not be
# set lower than 3.
worker_threads: {{SALT_WORKER_THREADS}}
##### Security settings #####
##########################################
# Enable passphrase protection of the Master signing_key. This only applies if

View File

@@ -13,6 +13,7 @@ SALT_LOG_ROTATE_RETENTION=${SALT_LOG_ROTATE_RETENTION:-52}
# https://docs.saltstack.com/en/latest/ref/configuration/master.html
SALT_RESTART_MASTER_ON_CONFIG_CHANGE=${SALT_RESTART_MASTER_ON_CONFIG_CHANGE:-False}
SALT_REACTOR_WORKER_THREADS=${SALT_REACTOR_WORKER_THREADS:-10}
SALT_WORKER_THREADS=${SALT_WORKER_THREADS:-5}
##### Logging settings #####
# https://docs.saltstack.com/en/latest/ref/configuration/master.html#master-logging-settings

View File

@@ -269,7 +269,8 @@ function configure_salt_master()
SALT_CACHE_DIR \
SALT_CONFS_DIR \
SALT_KEYS_DIR \
SALT_REACTOR_WORKER_THREADS
SALT_REACTOR_WORKER_THREADS \
SALT_WORKER_THREADS
# Update keys configuration
update_template "${SALT_ROOT_DIR}/master" \