nautobot-docker-compose icon indicating copy to clipboard operation
nautobot-docker-compose copied to clipboard

Celery Worker Healtch check has significant CPU Impact

Open nniehoff opened this issue 3 years ago • 4 comments

See https://github.com/nautobot/nautobot/issues/1106. I suggest using nautobot-server celery inspect ping --destination celery@$HOSTNAME as the helm chart does.

nniehoff avatar Nov 29 '21 14:11 nniehoff

👍🏻

jvanderaa avatar Dec 01 '21 19:12 jvanderaa

Adding on to this that the health check interval and timeout are too aggressive. On the sandbox nautobot environments the nautobot-server health_check command takes 7 seconds to run which is causing the celery worker and celery beat services to always show unhealthy.

gsnider2195 avatar Nov 30 '23 21:11 gsnider2195

@gsnider2195 do you have a recommended path?

jvanderaa avatar Dec 01 '23 14:12 jvanderaa

I would recommend sticking with the default interval and timeout of 30 seconds. Nothing depends on the celery_beat or celery_worker services so it doesn't make startup any faster by having their health checks so aggressive.

gsnider2195 avatar Dec 01 '23 16:12 gsnider2195

Closing as no longer relevant.

jdrew82 avatar Sep 10 '24 20:09 jdrew82