Skip to content

Commit

Permalink
chore: update some envvar config (#1360)
Browse files Browse the repository at this point in the history
* chore: decrease number of gunicorn workers from 8 to 4

too many workers -> high memory consumption and sigkill
we switch back to 4 workers

* chore: decrease PostgreSQL shared buffers size

We currently don't have enough RAM on VM 201 for 16 GB of shared buffers
  • Loading branch information
raphael0202 authored Jul 8, 2024
1 parent a02ec39 commit 923324e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/container-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,12 @@ jobs:
echo "INFLUXDB_BUCKET=off_metrics" >> .env
echo "INFLUXDB_AUTH_TOKEN=${{ secrets.INFLUXDB_AUTH_TOKEN }}" >> .env
echo "SLACK_TOKEN=${{ secrets.SLACK_TOKEN }}" >> .env
echo "GUNICORN_NUM_WORKERS=8" >> .env
echo "GUNICORN_NUM_WORKERS=4" >> .env
echo "EVENTS_API_URL=https://event.openfoodfacts.${{ env.ROBOTOFF_TLD }}" >> .env
echo "IMAGE_MODERATION_SERVICE_URL=${{ env.IMAGE_MODERATION_SERVICE_URL }}" >> .env
# PostgreSQL config
echo "ROBOTOFF_POSTGRES_SHARED_BUFFERS=16GB" >> .env
echo "ROBOTOFF_POSTGRES_SHARED_BUFFERS=8GB" >> .env
echo "ROBOTOFF_POSTGRES_WORK_MEM=1GB" >> .env
Expand Down

0 comments on commit 923324e

Please sign in to comment.