-
Notifications
You must be signed in to change notification settings - Fork 662
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
Ignore unschedulable nodes for eviction decisions #43
Conversation
Can one of the admins verify this patch? |
@containscafeine You need to fix the test case and also please look at the new flag node-selector #33, through which you can ignore certain nodes based on labels. Also, there is a plan in upstream community to replace UnSchedulable field with unschedulable taint and in descheduler we plan to have taint based descheduling. |
This commit makes descheduler ignore the unschedulable nodes from being considered for taking eviction decisions
b1c950a
to
d67f345
Compare
@ravisantoshgudimetla ack, fixed the failing test. Does it make sense that till the time spec.unschedulable is removed, we use it in descheduler? |
@containscafeine
A IOW, descheduler is just a pod evictor. For eviction, we don't need to check if the node is unschedulable. If you don't want node to be considered by descheduler, you should label the node and ask it to be excluded by descheduler. |
Yes that was the intention to consider unschedulable but ready nodes. However, for LowNodeUtilization strategy, if unschedulable nodes are under utilized, we must ignore them as pods wont be scheduled on them. IOW unschedulable nodes must only be considered for eviction if they are above target utilization but we must not consider unschedulable nodes if they are under low utilization threshold. If it is not the case, we should fix the LowNodeUtilization strategy. |
Ok after reading #42, I understood @containscafeine wants to do here but I believe the change in code should be in utilization strategy file. I will send a PR soon. |
Yay, thanks @ravisantoshgudimetla. Closing in favor of #45 |
…ream bug 1880913: Sync with upstream
This commit makes descheduler ignore the unschedulable nodes from
being considered for taking eviction decisions