Skip to content

Commit

Permalink
Avoids uwsgi filehandle leak
Browse files Browse the repository at this point in the history
  • Loading branch information
hufman committed Dec 23, 2022
1 parent a7e1c49 commit 002c0b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Expand Up @@ -35,7 +35,7 @@ jobs:
docker-compose -p vgmdbapi pull --quiet
- name: Restart the services
run: |
docker-compose -p vgmdbapi up --detach --scale vgmdb_web=1 --scale vgmdb_celery=2 &&
docker-compose -p vgmdbapi up --detach --scale vgmdb_web=2 --scale vgmdb_celery=2 &&
docker-compose -p vgmdbapi rm
env:
VIRTUAL_HOST: vgmdb.info
Expand Down
2 changes: 1 addition & 1 deletion docker/sv-vgmdb
@@ -1,2 +1,2 @@
#!/bin/sh
cd /; exec uwsgi --uid www-data -p 3 --max-requests 10000 --gevent 50 --gevent-monkey-patch --async 50 -s /tmp/uwsgi.sock --plugins=python --module wsgi --callable application
cd /; exec uwsgi --uid www-data -p 1 --max-worker-lifetime 600 --max-requests 10000 --gevent 200 --gevent-monkey-patch -s /tmp/uwsgi.sock --plugins=python --module wsgi --callable application

0 comments on commit 002c0b9

Please sign in to comment.