Commit 32caedd8 authored by Daniel Smith's avatar Daniel Smith

Demote log spam

These messages are only useful if you want to debug a particular scheduler assigment, and they are extremely verbose-- they each print out a line per host per assignment. Let's try to keep our log messages linear in the number of assigments.
parent f8bf9960
...@@ -62,7 +62,7 @@ func calculateOccupancy(pod *api.Pod, node api.Node, pods []*api.Pod) algorithm. ...@@ -62,7 +62,7 @@ func calculateOccupancy(pod *api.Pod, node api.Node, pods []*api.Pod) algorithm.
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(10).Infof(
"%v -> %v: Least Requested Priority, Absolute/Requested: (%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,
...@@ -190,7 +190,7 @@ func calculateBalancedResourceAllocation(pod *api.Pod, node api.Node, pods []*ap ...@@ -190,7 +190,7 @@ func calculateBalancedResourceAllocation(pod *api.Pod, node api.Node, pods []*ap
diff := math.Abs(cpuFraction - memoryFraction) diff := math.Abs(cpuFraction - memoryFraction)
score = int(10 - diff*10) score = int(10 - diff*10)
} }
glog.V(4).Infof( glog.V(10).Infof(
"%v -> %v: Balanced Resource Allocation, Absolute/Requested: (%d, %d) / (%d, %d) Score: (%d)", "%v -> %v: Balanced Resource Allocation, Absolute/Requested: (%d, %d) / (%d, %d) Score: (%d)",
pod.Name, node.Name, pod.Name, node.Name,
totalMilliCPU, totalMemory, totalMilliCPU, totalMemory,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment