Feature request: Docker executer swap space (e.g. "docker run --memory-swap")

Our docker executors are sized with the “large” resource class, and for the most part run fine. However, every once in a while we get spikes in RAM usage, which causes the OOM killer in out Ubuntu 24.04 container to shoot down processes.

Would it be possible to enable swap space somehow in the docker executors? Off the top of my head, something that would be supplied to the –memory-swap option to docker run springs to mind.

I don’t know how many containers you are running on each host, but I’d hope there would be hdd space available on the host that could be used for swap. It wouldn’t have to be unlimited swap space, of course. Maybe something like presets for “1x” or “2x” the RAM in your current resource class.

If we’d have to pay a few credits for this feature, that’d be fine IMO. But jumping to the next highest resource class would be a jump from 20 to 40 credits for us, which seems a little unfair since we’re just talking about spikes here.