mirror of
https://github.com/ansible/awx.git
synced 2026-02-15 10:10:01 -03:30
Optimize uwsgi launching in dev container and prod
* Set --master flag so we have a preforking master process to manage subprocs * Set max-requests to 1000 so uwsgi will recycle processes after 1000 requests * Set --no-orphans so uwsgi will track child processes and clean them up in order to respawn children * Turn stats on in the container and install uwsgitop in dev requirements so we can track uwsgi stats
This commit is contained in:
2
Makefile
2
Makefile
@@ -404,7 +404,7 @@ uwsgi: collectstatic
|
|||||||
@if [ "$(VENV_BASE)" ]; then \
|
@if [ "$(VENV_BASE)" ]; then \
|
||||||
. $(VENV_BASE)/tower/bin/activate; \
|
. $(VENV_BASE)/tower/bin/activate; \
|
||||||
fi; \
|
fi; \
|
||||||
uwsgi -b 32768 --socket :8050 --module=awx.wsgi:application --home=/venv/tower --chdir=/tower_devel/ --vacuum --processes=5 --harakiri=60 --py-autoreload 1
|
uwsgi -b 32768 --socket :8050 --module=awx.wsgi:application --home=/venv/tower --chdir=/tower_devel/ --vacuum --processes=5 --harakiri=60 --master --no-orphans --py-autoreload 1 --max-requests=1000 --stats /tmp/stats.socket
|
||||||
|
|
||||||
daphne:
|
daphne:
|
||||||
@if [ "$(VENV_BASE)" ]; then \
|
@if [ "$(VENV_BASE)" ]; then \
|
||||||
|
|||||||
@@ -11,3 +11,4 @@ pytest-django
|
|||||||
pytest-pythonpath
|
pytest-pythonpath
|
||||||
pytest-mock
|
pytest-mock
|
||||||
flower
|
flower
|
||||||
|
uwsgitop
|
||||||
|
|||||||
Reference in New Issue
Block a user