Skip to content

Conversation

@patrickdappollonio
Copy link
Owner

When http-server is run with Kubernetes resource requests/limits, the limits seen by the container are not the same limits set in the resources: section. It's a longstanding issue in the Go community where on a CFS scheduler, Go mistakenly takes the value of the host not the value provided by CFS.

This is a very simple change that imports Uber's gomaxprocs package which automatically configures these values if they're running inside container with a CFS scheduler.

@patrickdappollonio patrickdappollonio self-assigned this Oct 24, 2024
@patrickdappollonio patrickdappollonio merged commit 2cd30c5 into master Oct 24, 2024
@patrickdappollonio patrickdappollonio deleted the maxprocs branch October 24, 2024 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants