Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

Automatically set GOMAXPROCS #55

Open
cmacknz opened this issue Jun 13, 2022 · 0 comments
Open

Automatically set GOMAXPROCS #55

cmacknz opened this issue Jun 13, 2022 · 0 comments
Assignees
Labels
8.6-candidate enhancement New feature or request estimation:Day Task that represents a day of work. Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team v8.6.0

Comments

@cmacknz
Copy link
Member

cmacknz commented Jun 13, 2022

Describe the enhancement:
Automatically set GOMAXPROCS when beats are run in containers with a CFS quota set to minimize CPU throttling.

See elastic/apm-server#7967 and elastic/apm-server#8278 for more context. https://github.com/uber-go/automaxprocs can be used to easily add this feature.

Describe a specific use case for the enhancement or feature:
Setting GOMAXPROCS based on the configured CPU quota makes performance more predictable in containerized environments. Kubernetes deployments are particularly likely to experience problems from unoptimized GOMAXPROCS configurations.

Clone of elastic/beats#31920 for the shipper.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
8.6-candidate enhancement New feature or request estimation:Day Task that represents a day of work. Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team v8.6.0
Projects
None yet
Development

No branches or pull requests

4 participants