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

server/status: silence missing CPU cgroup error #118657

Merged
merged 1 commit into from Feb 2, 2024

Conversation

nvanbenschoten
Copy link
Member

Fixes #111648.

This commit eliminates log spam when a CPU cgroup is not configured for the cockroach process. This is a supported deployment mode, but since v22.2.11/v23.1.3/v23.2.0 (df55958), we've been spamming the logs with "unable to get CPU capacity" errors every 10 seconds when running outside of a CPU cgroup.

I considered reducing the severity of the log message from ERROR to INFO, but even that seemed loud for a log message every 10s in a supported deployment mode. For now, we remove the log message.

Release note (bug fix): Cockroach will no longer spam the logs with "unable to get CPU capacity" errors every 10 seconds when running outside of a CPU cgroup.

Fixes cockroachdb#111648.

This commit eliminates log spam when a CPU cgroup is not configured for the
cockroach process. This is a supported deployment mode, but since
`v22.2.11`/`v23.1.3`/`v23.2.0` (df55958), we've been spamming the logs with
"unable to get CPU capacity" errors every 10 seconds when running outside of
a CPU cgroup.

I considered reducing the severity of the log message from ERROR to INFO, but
even that seemed loud for a log message every 10s in a supported deployment mode.
For now, we remove the log message.

Release note (bug fix): Cockroach will no longer spam the logs with "unable to
get CPU capacity" errors every 10 seconds when running outside of a CPU cgroup.
@nvanbenschoten nvanbenschoten added backport-22.2.x Flags PRs that need to be backported to 22.2. backport-23.1.x Flags PRs that need to be backported to 23.1 backport-23.2.x Flags PRs that need to be backported to 23.2. labels Feb 2, 2024
@nvanbenschoten nvanbenschoten requested review from a team as code owners February 2, 2024 17:23
@nvanbenschoten nvanbenschoten requested review from xinhaoz and removed request for a team February 2, 2024 17:23
Copy link

blathers-crl bot commented Feb 2, 2024

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@arulajmani arulajmani left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @kvoli and @xinhaoz)

Copy link
Collaborator

@kvoli kvoli left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed all commit messages.
Reviewable status: :shipit: complete! 2 of 0 LGTMs obtained (waiting on @xinhaoz)

@nvanbenschoten
Copy link
Member Author

TFTRs!

bors r+

@craig
Copy link
Contributor

craig bot commented Feb 2, 2024

Build succeeded:

@craig craig bot merged commit 9434801 into cockroachdb:master Feb 2, 2024
9 checks passed
Copy link

blathers-crl bot commented Feb 2, 2024

Encountered an error creating backports. Some common things that can go wrong:

  1. The backport branch might have already existed.
  2. There was a merge conflict.
  3. The backport branch contained merge commits.

You might need to create your backport manually using the backport tool.


error creating merge commit from 153fd8f to blathers/backport-release-22.2-118657: POST https://api.github.com/repos/cockroachdb/cockroach/merges: 409 Merge conflict []

you may need to manually resolve merge conflicts with the backport tool.

Backport to branch 22.2.x failed. See errors above.


error setting reviewers, but backport branch blathers/backport-release-23.1-118657 is ready: POST https://api.github.com/repos/cockroachdb/cockroach/pulls/118670/requested_reviewers: 422 Reviews may only be requested from collaborators. One or more of the teams you specified is not a collaborator of the cockroachdb/cockroach repository. []

Backport to branch 23.1.x failed. See errors above.


error setting reviewers, but backport branch blathers/backport-release-23.2-118657 is ready: POST https://api.github.com/repos/cockroachdb/cockroach/pulls/118672/requested_reviewers: 422 Reviews may only be requested from collaborators. One or more of the teams you specified is not a collaborator of the cockroachdb/cockroach repository. []

Backport to branch 23.2.x failed. See errors above.


🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-22.2.x Flags PRs that need to be backported to 22.2. backport-23.1.x Flags PRs that need to be backported to 23.1 backport-23.2.x Flags PRs that need to be backported to 23.2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cgroups: systemd cgroup missing CPU limit interface file
4 participants