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 GOMAXPROCS=1 for less than 1 vCPU #7

Merged
merged 1 commit into from
Dec 14, 2024
Merged

Conversation

r0mdau
Copy link
Contributor

@r0mdau r0mdau commented Dec 13, 2024

Hi, while running in a ECS cluster, and giving 0.5 vCPU to my task, this result in putting GOMAXPROCS=0.

I am proposing to set a min GOMAXPROCS value to 1.

Open for propositions for this implementation.

@r0mdau
Copy link
Contributor Author

r0mdau commented Dec 13, 2024

This change is usefull for my context within open-telemetry/opentelemetry-collector-contrib#36814

@rdforte
Copy link
Owner

rdforte commented Dec 14, 2024

change looks good @r0mdau and thanks for adding a test for the change.
Thanks for this contribution.

@rdforte rdforte merged commit c159b6f into rdforte:main Dec 14, 2024
1 check failed
@r0mdau r0mdau deleted the maxprocs-min branch December 14, 2024 00:21
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