max_memory_per_child reached log is ERROR level, should be INFO #255
Closed
Description
When Celery recycles a Celery worker, it emits this log:
ERROR/ForkPoolWorker-587] child process exiting after exceeding memory limit (421812KiB / 300000KiB)
It happens in pool.py:379
:
if used_kb > 0 and used_kb > max_memory_per_child:
error(MAXMEM_USED_FMT.format(
used_kb, max_memory_per_child))
This is not actually an error, but an expected situation where I want to recycle workers as there is no other way to reduce their memory footprint. It should probably be lowered to INFO - I'm willing to open a PR if that's acceptable. Plz let me know - Thanks!
Metadata
Assignees
Labels
No labels