1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +00:00

Have template compute number of workers wanted

This commit is contained in:
Aidan Fitzgerald 2018-07-26 01:15:32 -04:00 committed by Aidan Fitzgerald
parent 9a0cc84630
commit dcff723590

View file

@ -1,9 +1,9 @@
#!/usr/bin/env sh
. '${opwen_webapp_envs}'
'{{lokole_venv}}/bin/gunicorn' \\
--timeout='300' \\
--workers='${opwen_webapp_workers}' \\
--bind='unix:{{lokole_domain_socket}}' \\
--log-level='error' \\
'{{lokole_venv}}/bin/gunicorn' \
--timeout='300' \
--workers='{{ [4, ansible_memtotal_mb / 200] | min | int }}' \
--bind='unix:{{lokole_domain_socket}}' \
--log-level='error' \
'opwen_email_client.webapp:app'