Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pkg/scheduler/framework/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
8 changes: 4 additions & 4 deletions pkg/scheduler/plugins/capacity/capacity.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Loading