20680: Set concurrency to num_cpus * 2 with a minimum of 8
[arvados.git] / tools / salt-install / config_examples / multi_host / aws / pillars / arvados.sls
index 58a7851c28a7ea2c9da1d6112816dcea85240bd0..301790088071718979ecba2ec4e7cb8c2068d658 100644 (file)
@@ -3,7 +3,8 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-{%- set max_workers = ("__CONTROLLER_MAX_WORKERS__" or grains['num_cpus'])|int %}
+{%- set _workers = ("__CONTROLLER_MAX_WORKERS__" or grains['num_cpus']*2)|int %}
+{%- set max_workers = [_workers, 8]|max %}
 {%- set max_reqs = ("__CONTROLLER_MAX_QUEUED_REQUESTS__" or 128)|int %}
 
 # The variables commented out are the default values that the formula uses.