Craig Condit created YUNIKORN-2052:
--------------------------------------

             Summary: Log additional information on preemption
                 Key: YUNIKORN-2052
                 URL: https://issues.apache.org/jira/browse/YUNIKORN-2052
             Project: Apache YuniKorn
          Issue Type: Improvement
          Components: core - scheduler
            Reporter: Craig Condit


Currently, when we preempt tasks, we log some information about the victim:
{code:java}
// SOURCE: pkg/scheduler/objects/preemption.go

log.Log(log.SchedPreemption).Info("Preempting task",
    zap.String("applicationID", victim.GetApplicationID()),
    zap.String("allocationKey", victim.GetAllocationKey()),
    zap.String("nodeID", victim.GetNodeID()),
    zap.Stringer("resources", victim.GetAllocatedResource()))
{code}
We should log some additional information to make it easier to correlate the 
preemption with the ask that triggered it:
 - applicationID of ask => "askApplicationID"
 - allocationKey of ask => "askAllocationKey"
 - queue of ask => "askQueue"
 - queue of victim => "victimQueue"

For clarity we should also rename a few of the existing output items:
 - "applicationID" => "victimApplicationID"
 - "allocationKey" => "victimAllocationKey"



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to