mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 02:09:56 +00:00
Update priorities.go
minor change in log message and log level
This commit is contained in:
parent
23f2401b45
commit
7eac8563d4
@ -31,7 +31,7 @@ func calculateScore(requested, capacity int64, node string) int {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
if requested > capacity {
|
if requested > capacity {
|
||||||
glog.Errorf("Combined requested resources from existing pods exceeds capacity on minion: %s", node)
|
glog.Infof("Combined requested resources from existing pods exceeds capacity on minion: %s", node)
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
return int(((capacity - requested) * 10) / capacity)
|
return int(((capacity - requested) * 10) / capacity)
|
||||||
@ -61,7 +61,7 @@ func calculateOccupancy(pod api.Pod, node api.Node, pods []api.Pod) HostPriority
|
|||||||
cpuScore := calculateScore(totalMilliCPU, capacityMilliCPU, node.Name)
|
cpuScore := calculateScore(totalMilliCPU, capacityMilliCPU, node.Name)
|
||||||
memoryScore := calculateScore(totalMemory, capacityMemory, node.Name)
|
memoryScore := calculateScore(totalMemory, capacityMemory, node.Name)
|
||||||
glog.V(4).Infof(
|
glog.V(4).Infof(
|
||||||
"%v -> %v: Least Requested Priority, AbsoluteRequested: (%d, %d) / (%d, %d) Score: (%d, %d)",
|
"%v -> %v: Least Requested Priority, Absolute/Requested: (%d, %d) / (%d, %d) Score: (%d, %d)",
|
||||||
pod.Name, node.Name,
|
pod.Name, node.Name,
|
||||||
totalMilliCPU, totalMemory,
|
totalMilliCPU, totalMemory,
|
||||||
capacityMilliCPU, capacityMemory,
|
capacityMilliCPU, capacityMemory,
|
||||||
|
Loading…
Reference in New Issue
Block a user