Add singularity.resourceLimits config option#7352
Conversation
Signed-off-by: Ben Sherman <bentshermann@gmail.com>
✅ Deploy Preview for nextflow-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
christopher-hakkaart
left a comment
There was a problem hiding this comment.
Docs look good
|
Naming suggestion: this adds |
|
Well, there is a difference here:
So the different names actually reflect the different behavior of each container runtime. Forcing them to be the same for consistency's sake would just blur meaning Although I agree it would be nice to have consistent naming. I think these settings are largely a historical accident, as each container runtime adds support for proper cgroups-based resource limits over time in different ways |
Close #6797
This PR adds the ability to enforce resource limits on Singularity/Apptainer containers when using the local executor
When
singularity.resourceLimits = true, Singularity containers are launched with--cpusand--memory, which prevents them from exceeding their allocated resources. Similar to what Docker does automaticallyThis feature needs to be opt-in because it requires cgroups in the host environment. Enabling it automatically could break existing code