feat: Set the number of workers for the runner/wheel in the reactor

This commit is contained in:
Carlos Álvaro
2021-12-30 22:26:46 +01:00
parent 65d21d5187
commit 1a388e9cc2
6 changed files with 16 additions and 3 deletions

View File

@@ -85,6 +85,12 @@ pillar_roots:
- {{SALT_BASE_DIR}}/pillar
###### Reactor Settings #####
###########################################
# Configure the number of workers for the runner/wheel in the reactor.
reactor_worker_threads: {{SALT_REACTOR_WORKER_THREADS}}
##### Syndic settings #####
##########################################
# The Salt syndic is used to pass commands through a master from a higher

View File

@@ -12,6 +12,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}
##### Logging settings #####
# https://docs.saltstack.com/en/latest/ref/configuration/master.html#master-logging-settings

View File

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