20680: Set concurrency to num_cpus * 2 with a minimum of 8 20680-cores-concurrency
authorPeter Amstutz <peter.amstutz@curii.com>
Mon, 14 Aug 2023 18:41:39 +0000 (14:41 -0400)
committerPeter Amstutz <peter.amstutz@curii.com>
Mon, 14 Aug 2023 18:41:39 +0000 (14:41 -0400)
commit881c6b774b036d82aef3d2df822c8a2b3ff4c3df
tree84416a9583bf44ee168f8ef5c998cbad26cfd965
parentfc55e48b43faeb6909ea161d804d5600df3d5c5c
20680: Set concurrency to num_cpus * 2 with a minimum of 8

In practice it makes sense to have two workers per core because
workers usually spend at least half their time waiting on the
database.

Setting a minimum concurrency of 8 avoids a deadlock situation when
controller calls keep-web, which calls back to controller.

This doesn't completely eliminate the problem, but it at least avoids
having deadlocked requests with a single user in the default
configuration (!).

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>
tools/salt-install/config_examples/multi_host/aws/pillars/arvados.sls
tools/salt-install/config_examples/multi_host/aws/pillars/nginx_passenger.sls