Skip to content

Avoid adding nodes that are not ready to schedule jobs #202

@asm582

Description

@asm582

To implement this feature:

for _, value := range cluster.Nodes {	// Do not use any Unschedulable nodes in calculations	if !value.Unschedulable {	if value.IsReady == "true" {	klog.V(6).Infof("[updateState] %s is marked as unschedulable or not ready node Total: %v, Used: %v, and Idle: %v will not be included in cluster state calculation.",	value.Name, value.Allocatable, value.Used, value.Idle)	continue	}	} 

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions