We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e66aef3 commit 52339bfCopy full SHA for 52339bf
cloud/scheduler/plugins/noderesource/node_resrouce.go
@@ -28,5 +28,7 @@ func (pl *NodeResource) Score(ctx context.Context, state *framework.CycleState,
28
maxMem := nodeInfo.Node().MaxMem
29
u := cpu / float32(maxCPU) * float32(mem/maxMem)
30
score := int64(1 / u)
31
- return score, nil
+ status := framework.NewStatus()
32
+ status.SetCode(1)
33
+ return score, status
34
}
0 commit comments