diff --git a/pkg/scheduler/framework/session.go b/pkg/scheduler/framework/session.go index 80b93c0c21..5186cf21d6 100644 --- a/pkg/scheduler/framework/session.go +++ b/pkg/scheduler/framework/session.go @@ -225,6 +225,9 @@ func openSession(cache cache.Cache) *Session { klog.V(3).Infof("Open Session %v with <%d> Job and <%d> Queues", ssn.UID, len(ssn.Jobs), len(ssn.Queues)) + klog.V(4).Infof("Session %v is opened with TotalResource: <%s>, TotalDeserved: <%s>, TotalGuaranteed: <%s>", + ssn.UID, ssn.TotalResource.String(), ssn.TotalDeserved.String(), ssn.TotalGuarantee.String()) + return ssn } diff --git a/pkg/scheduler/plugins/capacity/capacity.go b/pkg/scheduler/plugins/capacity/capacity.go index c8206a34f6..8f0a09e740 100644 --- a/pkg/scheduler/plugins/capacity/capacity.go +++ b/pkg/scheduler/plugins/capacity/capacity.go @@ -451,8 +451,8 @@ func (cp *capacityPlugin) buildQueueAttrs(ssn *framework.Session) { attr.deserved = helpers.Max(attr.deserved, attr.guarantee) cp.updateShare(attr) - klog.V(4).Infof("The attributes of queue <%s> in capacity: deserved <%v>, realCapability <%v>, allocate <%v>, request <%v>, elastic <%v>, share <%0.2f>", - attr.name, attr.deserved, attr.realCapability, attr.allocated, attr.request, attr.elastic, attr.share) + klog.V(4).Infof("The attributes of queue <%s> in capacity: deserved <%v>, capability <%v>, realCapability <%v>, allocate <%v>, request <%v>, elastic <%v>, share <%0.2f>", + attr.name, attr.deserved, attr.capability, attr.realCapability, attr.allocated, attr.request, attr.elastic, attr.share) } // Record metrics @@ -609,8 +609,8 @@ func (cp *capacityPlugin) buildHierarchicalQueueAttrs(ssn *framework.Session) bo // Update share for _, attr := range cp.queueOpts { cp.updateShare(attr) - klog.V(4).Infof("The attributes of queue <%s> in capacity: deserved <%v>, realCapability <%v>, allocate <%v>, request <%v>, elastic <%v>, share <%0.2f>", - attr.name, attr.deserved, attr.realCapability, attr.allocated, attr.request, attr.elastic, attr.share) + klog.V(4).Infof("The attributes of hierarchical queue <%s> in capacity: deserved <%v>, capability <%v>, realCapability <%v>, allocate <%v>, request <%v>, elastic <%v>, share <%0.2f>", + attr.name, attr.deserved, attr.capability, attr.realCapability, attr.allocated, attr.request, attr.elastic, attr.share) } // Record metrics