Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set auto GOMAXPROCS for enhance performance #1456

Open
Ja7ad opened this issue Aug 4, 2024 · 0 comments
Open

Set auto GOMAXPROCS for enhance performance #1456

Ja7ad opened this issue Aug 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Ja7ad
Copy link
Contributor

Ja7ad commented Aug 4, 2024

Describe the problem you'd like to have solved

GOMAXPROCS sets the maximum number of CPUs that can be executing. this call will go away when the scheduler improves.

Default of GOMAXPROCS set by runtime.NumCPU and for normal machine is perfect.

But on Linux container CPU quota sometime is limit and make performance issue.

Describe the ideal solution

We can use https://github.com/uber-go/automaxprocs and set GOMAXPROCS base on machine state.

@Ja7ad Ja7ad added the enhancement New feature or request label Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant