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

DEVPROD-9133 only run maxprocs for the app servers #8129

Merged
merged 2 commits into from
Jul 23, 2024

Conversation

ybrill
Copy link
Contributor

@ybrill ybrill commented Jul 23, 2024

DEVPROD-9133

Description

It looks like maxprocs assumes cfs_quota_us and cfs_period_us are set, which in turn depend on the CONFIG_CFS_BANDWIDTH kernel configuration option. This was added to modern versions of Debian, but not Jessie.

This PR moves setting GOMAXPROCS into startWebService() so it'll only happen in the app servers (and smoke tests and whatever), which should only be running on modern versions of Linux.

Testing

The app server started successfully in staging, and GOMAXPROCS was set appropriately.

@ybrill ybrill requested a review from a team July 23, 2024 16:01
Copy link
Contributor

@Kimchelly Kimchelly left a comment

Choose a reason for hiding this comment

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

LGTM mod comment suggestion.

@@ -48,6 +49,9 @@ func startWebService() cli.Command {
Action: func(c *cli.Context) error {
ctx, cancel := context.WithCancel(context.Background())

_, err := maxprocs.Set()
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add a comment on what max procs is needed for? Otherwise it looks like a random/unnecessary bit of logic and future readers might wonder what's so important about it that it warrants grip.EmergencyFatal.

@ybrill ybrill merged commit 46bd314 into evergreen-ci:main Jul 23, 2024
3 of 4 checks passed
@ybrill ybrill deleted the DEVPROD-9133_max_procs_fix branch July 23, 2024 16:15
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