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:
parent
9a0cc84630
commit
dcff723590
1 changed files with 5 additions and 5 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue