I don't think there is a silver bullet solution to avoid an OOM but there
are mitigations you can employ if there is a problem, such as:
 - sizing the workers appropriately,
 - avoiding memory leaks in the user code,
 - limiting worker-level parallelism, if necessary.

Reply via email to