feat: Set the number of worker threads to start
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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" \
|
||||
|
||||
Reference in New Issue
Block a user