Skip to content

Commit

Permalink
Limit worker lifespan - RAM useage mitigation
Browse files Browse the repository at this point in the history
Limit worker lifespan to save our precious RAM as discussed on [Discord](https://discord.com/channels/920056098122248193/1179480913701241002/1180026088802496512)

Mitigates tubearchivist#500 though RAM usage can still ramp rather high before worker is culled
  • Loading branch information
PhuriousGeorge committed Jan 5, 2024
1 parent 94295cd commit c9ae796
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker_assets/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ python manage.py ta_migpath

# start all tasks
nginx &
celery -A home.tasks worker --loglevel=INFO &
celery -A home.tasks worker --loglevel=INFO --max-tasks-per-child 10 &
celery -A home beat --loglevel=INFO \
-s "${BEAT_SCHEDULE_PATH:-${cachedir}/celerybeat-schedule}" &
uwsgi --ini uwsgi.ini

0 comments on commit c9ae796

Please sign in to comment.