You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ kubectl get nodesNAME STATUS ROLES AGE VERSIONkubernetes-master Ready,SchedulingDisabled <none> 56m v1.8.4-dirtykubernetes-minion-group-5rrh Ready <none> 56m v1.8.4-dirtykubernetes-minion-group-fb8c Ready <none> 56m v1.8.4-dirtykubernetes-minion-group-t1r3 Ready,SchedulingDisabled <none> 56m v1.8.4-dirty
The worker node kubernetes-minion-group-t1r3 was cordoned and marked as unschedulable, however it fulfilled the criteria for being an underutilized node according to the following policy file -
apiVersion: "descheduler/v1alpha1"kind: "DeschedulerPolicy"strategies:
"LowNodeUtilization":
enabled: trueparams:
nodeResourceUtilizationThresholds:
thresholds: # any node below the following percentages is considered underutilized"cpu": 40"memory": 40"pods": 40targetThresholds: # any node above the following percentages is considered overutilized"cpu": 30"memory": 2"pods": 1
When I ran the descheduler, kubernetes-minion-group-t1r3 (the cordoned node) was taken into account and marked as underutilized and multiple pods were evicted from other nodes in the hope that the scheduler will schedule on kubernetes-minion-group-t1r3, but that never happened since the node was cordoned.
Does it make sense to not take a cordoned node into consideration while looking for underutilized nodes?
@aveshagarwal I found some commented code that's fix this issue (#43).
Was there any reason that the related code was commented out? Would you rather have the logic somewhere else?
I have the following nodes -
The worker node
kubernetes-minion-group-t1r3
was cordoned and marked as unschedulable, however it fulfilled the criteria for being an underutilized node according to the following policy file -When I ran the descheduler,
kubernetes-minion-group-t1r3
(the cordoned node) was taken into account and marked as underutilized and multiple pods were evicted from other nodes in the hope that the scheduler will schedule onkubernetes-minion-group-t1r3
, but that never happened since the node was cordoned.Does it make sense to not take a cordoned node into consideration while looking for underutilized nodes?
I ran the descheduler like the following -
The text was updated successfully, but these errors were encountered: