@@ -174,6 +174,7 @@ func main() {
174174 newUnschedulablePodsToHelp := FilterOutSchedulable (unschedulablePodsToHelp , nodes , allScheduled , predicateChecker )
175175
176176 if len (newUnschedulablePodsToHelp ) != len (unschedulablePodsToHelp ) {
177+ glog .V (2 ).Info ("Schedulable pods present" )
177178 schedulablePodsPresent = true
178179 }
179180 unschedulablePodsToHelp = newUnschedulablePodsToHelp
@@ -208,7 +209,12 @@ func main() {
208209 lastScaleDownFailedTrial .Add (* scaleDownTrialInterval ).After (time .Now ()) ||
209210 schedulablePodsPresent
210211
212+ glog .V (4 ).Info ("Scale down status: unneededOnly=%v lastScaleUpTime=%s " +
213+ "lastScaleDownFailedTrail=%s schedulablePodsPresent=%v" , calculateUnneededOnly ,
214+ lastScaleUpTime , lastScaleDownFailedTrial , schedulablePodsPresent )
215+
211216 updateLastTime ("findUnneeded" )
217+ glog .V (4 ).Infof ("Calculating unneded nodes" )
212218
213219 unneededNodes = FindUnneededNodes (
214220 nodes ,
@@ -219,7 +225,15 @@ func main() {
219225
220226 updateDuration ("findUnneeded" , unneededStart )
221227
228+ for key , val := range unneededNodes {
229+ if glog .V (4 ) {
230+ glog .V (4 ).Infof ("%s is unneeded since %s duration %s" , key , val .String (), time .Now ().Sub (val ).String ())
231+ }
232+ }
233+
222234 if ! calculateUnneededOnly {
235+ glog .V (4 ).Infof ("Starting scale down" )
236+
223237 scaleDownStart := time .Now ()
224238 updateLastTime ("scaledown" )
225239
0 commit comments