-
Notifications
You must be signed in to change notification settings - Fork 669
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
README: Clarify podRestartThreshold applying to the sum over containers #642
README: Clarify podRestartThreshold applying to the sum over containers #642
Conversation
calcContainerRestarts sums over containers. The new language makes that clear, avoiding potential confusion vs. an altenative that looked for pods where a single container had passed the configured threshold. For example, with three containers with 50 restarts and a threshold of 100, the actual "sum over containers" logic makes that pod a candidate for descheduling, but the "largest single container restart count" hypothetical would not have made it a candidate. Also shifts labelSelector into the parameter table, because when it was added in 29ade13 (README and e2e-testcase add for labelSelector, 2021-03-02, kubernetes-sigs#510), it landed a few lines too high.
Welcome @wking! |
Hi @wking. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/ok-to-test
/lgtm
|
Good suggestion @wking! I have opened a PR here to do just that: kubernetes/test-infra#23956 |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ingvagabund, wking 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:
Approvers can indicate their approval by writing |
…avingTooManyRestarts README: Clarify podRestartThreshold applying to the sum over containers
calcContainerRestarts
sums over containers. The new language makes that clear, avoiding potential confusion vs. an altenative that looked for pods where a single container had passed the configured threshold. For example, with three containers with 50 restarts and a threshold of 100, the actual "sum over containers" logic makes that pod a candidate for descheduling, but the "largest single container restart count" hypothetical would not have made it a candidate.Also shifts
labelSelector
into the parameter table, because when it was added in 29ade13 (#510), it landed a few lines too high.