mirror of
https://github.com/tubearchivist/tubearchivist.git
synced 2025-03-17 03:10:12 +00:00
Limit worker lifespan - RAM useage mitigation (#644)
Limit worker lifespan to save our precious RAM as discussed on [Discord](https://discord.com/channels/920056098122248193/1179480913701241002/1180026088802496512) Mitigates #500 though RAM usage can still ramp rather high before worker is culled
This commit is contained in:
parent
4078eb307f
commit
49659322a1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user