File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
cluster-autoscaler/estimator Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ func (e *BinpackingNodeEstimator) tryToScheduleOnNewNodes(
190
190
// If the pod can't be scheduled on the last node because of topology constraints, we can stop binpacking.
191
191
// The pod can't be scheduled on any new node either, because it has the same topology constraints.
192
192
nodeName , err := e .clusterSnapshot .SchedulePodOnAnyNodeMatching (pod , func (nodeInfo * framework.NodeInfo ) bool {
193
- return true // Node scale-up can cause old nodes to become schedulable, so we check all nodes.
193
+ return nodeInfo . Node (). Name != estimationState . lastNodeName // only skip the last node that failed scheduling
194
194
})
195
195
if err != nil && err .Type () == clustersnapshot .SchedulingInternalError {
196
196
// Unexpected error.
You can’t perform that action at this time.
0 commit comments