mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Have template compute number of workers wanted
This commit is contained in:
parent
9a0cc84630
commit
dcff723590
1 changed files with 5 additions and 5 deletions
|
@ -1,9 +1,9 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
. '${opwen_webapp_envs}'
|
. '${opwen_webapp_envs}'
|
||||||
|
|
||||||
'{{lokole_venv}}/bin/gunicorn' \\
|
'{{lokole_venv}}/bin/gunicorn' \
|
||||||
--timeout='300' \\
|
--timeout='300' \
|
||||||
--workers='${opwen_webapp_workers}' \\
|
--workers='{{ [4, ansible_memtotal_mb / 200] | min | int }}' \
|
||||||
--bind='unix:{{lokole_domain_socket}}' \\
|
--bind='unix:{{lokole_domain_socket}}' \
|
||||||
--log-level='error' \\
|
--log-level='error' \
|
||||||
'opwen_email_client.webapp:app'
|
'opwen_email_client.webapp:app'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue