[ 
https://issues.apache.org/jira/browse/YUNIKORN-1928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17759159#comment-17759159
 ] 

Craig Condit commented on YUNIKORN-1928:
----------------------------------------

This logic is 100% needed and should not be removed. It is used to flag pods 
that have been skipped so that they may be treated differently by the scheduler 
plugin logic. Unlike the standalone scheduler mode (which does not need this), 
plugin mode does, because the default scheduler itself is the one responsible 
for setting the Pod state. Without this, PreEnqueue functionality is broken.

> Remove the unused skip logic for auto scaling container.
> --------------------------------------------------------
>
>                 Key: YUNIKORN-1928
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-1928
>             Project: Apache YuniKorn
>          Issue Type: Improvement
>          Components: core - scheduler
>            Reporter: Qi Zhu
>            Assignee: Qi Zhu
>            Priority: Major
>              Labels: pull-request-available
>
> In shim side we have skip autoscaling logic both for yunikorn mode and plugin 
> mode.
> {code:java}
> // code placeholder
> switch request.State {
> case si.UpdateContainerSchedulingStateRequest_SKIPPED:
>     // auto-scaler scans pods whose pod condition is PodScheduled=false && 
> reason=Unschedulable
>     // if the pod is skipped because the queue quota has been exceed, we do 
> not trigger the auto-scaling
>     task.SetTaskSchedulingState(interfaces.TaskSchedSkipped)
>     if ctx.updatePodCondition(task,
>        &v1.PodCondition{
>           Type:    v1.PodScheduled,
>           Status:  v1.ConditionFalse,
>           Reason:  "SchedulingSkipped",
>           Message: request.Reason,
>        }) {
>        events.GetRecorder().Eventf(task.pod.DeepCopy(), nil,
>           v1.EventTypeNormal, "PodUnschedulable", "PodUnschedulable",
>           "Task %s is skipped from scheduling because the queue quota has 
> been exceed", task.alias)
>     }{code}
> We need to remove the unused misleading logic.



--
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