Skip to content

Commit eb990bb

Browse files
author
happyandslow
committed
nhance log for debugging purposes v0.3.0-metrics-3
Signed-off-by: happyandslow <[email protected]>
1 parent 2ee5ac2 commit eb990bb

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

pkg/plugins/gateway/algorithms/least_busy_time.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,8 @@ func (r leastBusyTimeRouter) Route(ctx *types.RoutingContext, readyPodList types
7575
return "", err
7676
}
7777
klog.Infof("select random pod: %v, podIP: %v", targetPod.Name, targetPod.Status.PodIP)
78-
}
79-
else{
80-
klog.Infof("select target pod: %v, podIP: %v, GPU busy time ratio: %v", pod.Name, pod.Status.PodIP, minBusyTimeRatio)
78+
} else {
79+
klog.Infof("select target pod: %v, podIP: %v, GPU busy time ratio: %v", targetPod.Name, targetPod.Status.PodIP, minBusyTimeRatio)
8180
}
8281

8382
ctx.SetTargetPod(targetPod)

pkg/plugins/gateway/algorithms/least_gpu_cache.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,8 @@ func (r leastGpuCacheRouter) Route(ctx *types.RoutingContext, readyPodList types
8181
return "", err
8282
}
8383
klog.Infof("select random targetPod: %s(%s)", targetPod.Name, targetPod.Status.PodIP)
84-
}
85-
else{
86-
klog.Infof("select targetPod: %s(%s) gpuCache: %v", targetPod.Name, targetPod.Status.PodIP, gpuCache.GetSimpleValue())
84+
} else {
85+
klog.Infof("select targetPod: %s(%s) gpuCache: %v", targetPod.Name, targetPod.Status.PodIP, minGpuCache)
8786
}
8887

8988
if targetPod == nil {

0 commit comments

Comments
 (0)