ucam-department-of-psychiatry / camcops

Cambridge Cognitive and Psychiatric Test Kit (CamCOPS)
Other
12 stars 8 forks source link

Restrict memory used by celery workers #285

Closed martinburchell closed 1 year ago

martinburchell commented 1 year ago

These settings have helped reduce the memory used by Celery on the CPFT server. So I've added them to the demo supervisor and Celery configuration. max-memory-per-child in the Celery args section of the CamCOPS config file set to a sensible default so no celery worker can grow beyond this size stopasgroup in the supervisor config to stop orphaned processes being left behind when supervisor stops. startretries in the supervisor config was already set to 10. Seems sensible.

Fixes #280