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

Remove redundant checks for taints and nodeSelectors from strategies. #574

Closed
RyanDevlin opened this issue May 24, 2021 · 14 comments · Fixed by #790
Closed

Remove redundant checks for taints and nodeSelectors from strategies. #574

RyanDevlin opened this issue May 24, 2021 · 14 comments · Fixed by #790
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@RyanDevlin
Copy link
Contributor

Is your feature request related to a problem? Please describe.

Currently many features implement their own checks to determine if a pod will end up on the same node after eviction. Some strategies check for taints, others check for nodeSelectors, others check both, and some don't check for this edge case. With the addition of the nodeFit feature, checks for taints, nodeSelectors, and whether a node is unschedulable can be turned on and off for almost all strategies. The nodeFit feature allows for a consistent approach to this optimization so that all strategies are in line with one another.

Describe the solution you'd like

Ideally, every strategy should explicitly not check for taints and/or nodeSelectors. If the consideration of these parameters is desired, one could enable the nodeFit strategy parameter and achieve the same optimization.

Describe alternatives you've considered

None.

What version of descheduler are you using?
Any version.

Additional context

See the discussion in #559 for more detailed information regarding exactly where edits should be made to the codebase.

@RyanDevlin RyanDevlin added the kind/feature Categorizes issue or PR as related to a new feature. label May 24, 2021
@RyanDevlin
Copy link
Contributor Author

@damemi @ingvagabund I remember we had a conversation about waiting for 1-2 releases before enabling Node Fit filtering by default and removing the redundant checks in the strategies. Is this something we can now implement, or should we wait for a few more releases?

@damemi
Copy link
Contributor

damemi commented Jul 8, 2021

I think we should put a release between when we first added it and when we enable it by default, to give enough soak time for users. Does that sound good?

@RyanDevlin
Copy link
Contributor Author

Okay I think that's fair. So essentially once the next release occurs, work can begin on this feature?

@damemi
Copy link
Contributor

damemi commented Jul 30, 2021

Okay I think that's fair. So essentially once the next release occurs, work can begin on this feature?

Yup, that sounds good to me

@RyanDevlin
Copy link
Contributor Author

@damemi I'm going to open up a PR to fix #604 by the end of this week. In the work that was done to implement #604, I ended up consolidating some of the pod filtering logic. Now that it's consolidated, I see a clear path to fixing the issue in this thread as well.

Do you think I should do these in two separate PRs, or should I follow through with aligning all the strategies in my current work?

@damemi
Copy link
Contributor

damemi commented Sep 29, 2021

@RyanDevlin I think 2 separate PRs is fine. Refactoring work can always be a follow up

@RyanDevlin
Copy link
Contributor Author

RyanDevlin commented Sep 30, 2021

@damemi I didn't want to go against what you said here, but I ended up putting it in one PR. After reviewing the strategies I realized that my work for #604 completed everything but the test cases needed for this issue. Thus, in order to make them two PR's I would have had to undo a bunch of work, and then redo it for the second PR.

So instead I just added the missing test cases and submitted them as one. I hope that's okay, let me know if you'd still like me to break this into two PRs.

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Dec 29, 2021
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jan 28, 2022
@ingvagabund
Copy link
Contributor

/remove-lifecycle rotten

@k8s-ci-robot k8s-ci-robot removed the lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. label Jan 28, 2022
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 28, 2022
@ingvagabund
Copy link
Contributor

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 28, 2022
@ingvagabund
Copy link
Contributor

Fixed in #790
/close

@k8s-ci-robot
Copy link
Contributor

@ingvagabund: Closing this issue.

In response to this:

Fixed in #790
/close

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
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
5 participants