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

Bug 1881208: add alert for system.slice rss going over system-reserved #2033

Merged

Conversation

sjenning
Copy link
Contributor

@sjenning sjenning commented Aug 27, 2020

@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 27, 2020
@mrunalp
Copy link
Member

mrunalp commented Aug 27, 2020

I think we want to get a number that accounts for pages that we aren't able to evict from cri-o on drop caches. Also, the alert could be at 90 - 95% of the reservation.

rules:
- alert: SystemMemoryExceedsReservation
expr: |
container_memory_rss{id="/system.slice"} > 1073741824
Copy link
Contributor

Choose a reason for hiding this comment

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

Hrm, this needs to come from the reservation the system makes, which is exposed as a metric

Copy link
Contributor

@smarterclayton smarterclayton Aug 27, 2020

Choose a reason for hiding this comment

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

constant should be kube_node_status_capacity{... mem} - kube_node_status_allocatable{... mem}, and you need to figure out how to make that number show up in the message somehow

Copy link
Contributor

@smarterclayton smarterclayton Aug 27, 2020

Choose a reason for hiding this comment

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

is there anything on a node outside of system and kubepods? should the first value be (container_memory_rss{id="/"} - container_memory_rss{id="/kubepods.slice"}) > (capacity - allocatable)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

all the kernel threads are in /. no userspace process though.

@sjenning sjenning force-pushed the system-reservation-alert branch 2 times, most recently from 1cffb76 to 19b86d0 Compare August 27, 2020 19:50
@sjenning sjenning changed the title WIP: add alert for system.slice rss going over system-reserved add alert for system.slice rss going over system-reserved Aug 28, 2020
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 28, 2020
labels:
severity: warning
annotations:
message: "System memory usage of {{ $value | humanize }} on {{ $labels.node }} exceeds 90% of the reservation"
Copy link
Contributor

Choose a reason for hiding this comment

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

Messages should be acitonable. So you need to recommend next steps. I would suggest playing around with something like the following additions:

Reserved memory ensures system processes can function even when the node is fully allocated and protects against workload out of memory events impacting the proper functioning of the node. The reservation may be increased (link to docs) when running nodes with high numbers of pods.

Or similar

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@smarterclayton better now?

@sjenning
Copy link
Contributor Author

/retest

1 similar comment
@sjenning
Copy link
Contributor Author

/retest

@smarterclayton
Copy link
Contributor

/lgtm

Attach the bug and this is gtg for 4.6

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 18, 2020
@sjenning sjenning changed the title add alert for system.slice rss going over system-reserved Bug 1881208: add alert for system.slice rss going over system-reserved Sep 21, 2020
@openshift-ci-robot openshift-ci-robot added bugzilla/severity-high Referenced Bugzilla bug's severity is high for the branch this PR is targeting. bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. labels Sep 21, 2020
@openshift-ci-robot
Copy link
Contributor

@sjenning: This pull request references Bugzilla bug 1881208, which is invalid:

  • expected the bug to target the "4.6.0" release, but it targets "---" instead

Comment /bugzilla refresh to re-evaluate validity if changes to the Bugzilla bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

Bug 1881208: add alert for system.slice rss going over system-reserved

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@sjenning
Copy link
Contributor Author

/bugzilla refresh

@openshift-ci-robot openshift-ci-robot added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Sep 21, 2020
@openshift-ci-robot
Copy link
Contributor

@sjenning: This pull request references Bugzilla bug 1881208, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.6.0) matches configured target release for branch (4.6.0)
  • bug is in the state NEW, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

/bugzilla refresh

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci-robot openshift-ci-robot removed the bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. label Sep 21, 2020
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kikisdeliveryservice, sjenning, smarterclayton

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [kikisdeliveryservice]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 21, 2020
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-ci-robot
Copy link
Contributor

@sjenning: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/okd-e2e-aws 92fceb1 link /test okd-e2e-aws

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit 56a5514 into openshift:master Sep 21, 2020
@openshift-ci-robot
Copy link
Contributor

@sjenning: All pull requests linked via external trackers have merged:

Bugzilla bug 1881208 has been moved to the MODIFIED state.

In response to this:

Bug 1881208: add alert for system.slice rss going over system-reserved

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. bugzilla/severity-high Referenced Bugzilla bug's severity is high for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants