commit | 8ece67561c2d18d523c14559a86702a834d17504 | [log] [tgz] |
---|---|---|
author | Mykyta Karpin <mkarpin@mirantis.com> | Mon Jul 23 18:39:56 2018 +0300 |
committer | Mykyta Karpin <mkarpin@mirantis.com> | Mon Jul 23 15:52:10 2018 +0000 |
tree | 64d354df319b139ba5c068f18b74ccfb24e94371 | |
parent | 58a0dc667b0452afeff46cbc0b7548ad22b3b0a6 [diff] |
Add ability to set reactor_worker_threads There is issue [1] with reactor in salt 2017, one of the workarounds is to set reactor workers to 1 [1] https://github.com/saltstack/salt/issues/47539 Change-Id: I47d76cc1dc5d0afe6d8b215e2d32cdbab3ac1a8c Related-Prod: https://mirantis.jira.com/browse/PROD-21463
diff --git a/salt/files/_reactor.conf b/salt/files/_reactor.conf index 7c168b2..b79806e 100644 --- a/salt/files/_reactor.conf +++ b/salt/files/_reactor.conf
@@ -1,5 +1,9 @@ {% from "salt/map.jinja" import master with context %} +{%- if master.reactor_worker_threads is defined %} +reactor_worker_threads: {{ master.reactor_worker_threads }} +{%- endif %} + reactor: {%- for event, reactors in master.reactor.items() %} - {{ event }}:
diff --git a/tests/pillar/master_api.sls b/tests/pillar/master_api.sls index 4687480..4c63ea3 100644 --- a/tests/pillar/master_api.sls +++ b/tests/pillar/master_api.sls
@@ -8,6 +8,7 @@ master: command_timeout: 5 worker_threads: 2 + reactor_worker_threads: 2 enabled: true source: engine: pkg