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.
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 sizestopasgroup
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