DEV Community

Deepak Rawte
Deepak Rawte

Posted on

incorrect output on NumCPU() when using cgroups2

Assuming it as a helm-chart deployment*

  • On a cgroup2 enabled k8s cluster, in ingress controller pod the nginx process will use all the cores of the node and will not be restricted by container resource limits. This can cause OOM and ingress-controller pod will go to a CrashLoopBackOff.

  • As of now, workaround is to set the worker_processes in a configmap (nginx.conf).

Ref: https://github.com/kubernetes/ingress-nginx/issues/9665

Top comments (0)

ACI image

ACI.dev: Fully Open-source AI Agent Tool-Use Infra (Composio Alternative)

100% open-source tool-use platform (backend, dev portal, integration library, SDK/MCP) that connects your AI agents to 600+ tools with multi-tenant auth, granular permissions, and access through direct function calling or a unified MCP server.

Check out our GitHub!

👋 Kindness is contagious

Delve into a trove of insights in this thoughtful post, celebrated by the welcoming DEV Community. Programmers of every stripe are invited to share their viewpoints and enrich our collective expertise.

A simple “thank you” can brighten someone’s day—drop yours in the comments below!

On DEV, exchanging knowledge lightens our path and forges deeper connections. Found this valuable? A quick note of gratitude to the author can make all the difference.

Get Started