feat: Set the number of workers for the runner/wheel in the reactor
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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" \
|
||||
|
||||
Reference in New Issue
Block a user