Has Anyone Disabled Memory Overcommit for Their Web Apps?

0
5
Asked By CuriousCoder99 On

I'm running about 100 pods of five different Python web applications across multiple nodes, and I'm experiencing around 15 OOM (Out of Memory) kills on a typical day. I've checked resource limits and haven't found any obvious flaws yet, so I'm not entirely sure why these OOM kills are happening. To help manage resource usage more effectively, I was thinking about disabling memory overcommit. This would make it more likely for memory allocation to fail, but I'm concerned about any potential unforeseen negative consequences. Has anyone tried this approach, and what were your experiences?

3 Answers

Answered By CloudNinja88 On

Have you checked the resource quotas set up in your Kubernetes cluster? It could be that they're set too aggressively, which might be contributing to the OOM kills.

Answered By DataDive23 On

You might want to consider that limiting CPU is more important than limiting memory. Generally, it's better not to set strict CPU limits, as it can lead to performance issues. Focus on optimizing your actual resource values instead.

Answered By TechGuru42 On

I wouldn't recommend disabling memory overcommit without digging deeper into the issue first. You might have a memory leak or perhaps you're not allocating enough memory for your containers to function properly. What have you tried in terms of debugging this?

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.