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

Automatically set GOMAXPROCS to match the number of CPUs available to the container #5211

Merged
merged 5 commits into from
Mar 24, 2023

Conversation

rajatvig
Copy link
Member

Follow up to #5023 to address #5022

@rajatvig rajatvig added the release-note/small A small change that needs one line of explanation in the release notes. label Mar 20, 2023
@rajatvig rajatvig marked this pull request as ready for review March 20, 2023 22:34
@rajatvig rajatvig requested a review from a team as a code owner March 20, 2023 22:34
@rajatvig rajatvig requested review from tsaarni and skriss and removed request for a team March 20, 2023 22:34
… the container

Signed-off-by: Rajat Vig <rvig@etsy.com>
Signed-off-by: Rajat Vig <rvig@etsy.com>
Signed-off-by: Rajat Vig <rvig@etsy.com>
@codecov
Copy link

codecov bot commented Mar 20, 2023

Codecov Report

Merging #5211 (27d1bbb) into main (ced278b) will decrease coverage by 0.09%.
The diff coverage is 0.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #5211      +/-   ##
==========================================
- Coverage   77.94%   77.85%   -0.09%     
==========================================
  Files         138      138              
  Lines       17731    17759      +28     
==========================================
+ Hits        13820    13826       +6     
- Misses       3646     3665      +19     
- Partials      265      268       +3     
Impacted Files Coverage Δ
cmd/contour/contour.go 0.00% <0.00%> (ø)

... and 14 files with indirect coverage changes

@rajatvig
Copy link
Member Author

Unsure how to go about fixing the code coverage drop.

Signed-off-by: Rajat Vig <rvig@etsy.com>
Copy link
Member

@sunjayBhatia sunjayBhatia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm other than the one comment

logs look like this with no resources defined:

time="2023-03-23T13:39:58Z" level=info msg="maxprocs: Leaving GOMAXPROCS=8: CPU quota undefined"

when defined:

time="2023-03-23T13:43:42Z" level=info msg="maxprocs: Updating GOMAXPROCS=1: determined from CPU quota"

when set in the environment:

time="2023-03-23T13:49:02Z" level=info msg="maxprocs: Honoring GOMAXPROCS=\"4\" as set in environment"

cmd/contour/contour.go Outdated Show resolved Hide resolved
Signed-off-by: Rajat Vig <rvig@etsy.com>
@skriss skriss merged commit a46c330 into projectcontour:main Mar 24, 2023
@rajatvig rajatvig deleted the gomaxprocs branch March 24, 2023 16:45
yangyy93 pushed a commit to projectsesame/contour that referenced this pull request Mar 27, 2023
yangyy93 pushed a commit to projectsesame/contour that referenced this pull request Mar 27, 2023
… the container (projectcontour#5211)

Closes projectcontour#5022.

Signed-off-by: Rajat Vig <rvig@etsy.com>
Signed-off-by: yy <yang.yang@daocloud.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/small A small change that needs one line of explanation in the release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants