Use swap in between OOM kill and reboot
K
Kai Marshland
When an app is OOM (out of memory) killed, there is downtime in between when it's killed and when the server finishes rebooting. I would like render to not kill the process until another instance has booted (just like it works in zero-downtime deployments), and use swap in the meantime to stay within the memory limits. This might give somewhat degraded performance while the replacement server is booting, but it would be far superior to downtime.
Log In
N
Nat Budin
This might be worth revisiting now that Kubernetes 1.22 added support for swap: https://kubernetes.io/blog/2021/08/04/kubernetes-1-22-release-announcement/
Anurag Goel
Containerized applications do not support swap memory today. A better implementation would be to allow vertical autoscaling based on memory thresholds (like our horizontal autoscaling). This is on the list.