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

PoAn Yang commented on YUNIKORN-1921:
-------------------------------------

Not sure whether my answer is correct. Just sharing some thoughts. I assume all 
workloads (except the control plane) are scheduled by Yunikorn. Although there 
is no PriorityClass on placeholder pods, the yunikorn-core schedules the 
highest priority application first.

For gang scheduling, we have to use FIFO sorting policy[1]. Also, we sort 
applications by priority by default[2]. In this case, we will call 
{{sortApplicationsByPriorityAndSubmissionTime}} in {{{}sortApplications{}}}[3], 
so the system will sort applications by priority first and then by submission 
time.

[~mpoland], if you can share your config and workload YAML, I can help to debug.

[~wilfreds], could you take a look for this comment? Not sure whether I miss 
anything. Thank you.

[1] 
[https://yunikorn.apache.org/docs/next/user_guide/gang_scheduling#why-the-fifo-sorting-policy]

[2] 
[https://yunikorn.apache.org/docs/next/user_guide/queue_config#applicationsortpriority]

[3] 
[https://github.com/apache/yunikorn-core/blob/a4b2ebb5748ac62a8b4ce3e8e6258dc7223e8eb8/pkg/scheduler/objects/sorters.go#L112]

> Gang Scheduled Placeholder Pods Don't Inherit PriorityClasses
> -------------------------------------------------------------
>
>                 Key: YUNIKORN-1921
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-1921
>             Project: Apache YuniKorn
>          Issue Type: Bug
>            Reporter: Matt Poland
>            Priority: Major
>
> While testing Yunikorn's gang scheduling feature, we noticed that placeholder 
> pods do not inherit the PriorityClass defined for their associated pods 
> awaiting scheduling.
> The placeholder pods are assigned a priority of 0 instead. This can affect 
> jobs that are assigned a higher priority when they arrive around the same 
> time as those of lower priority.
> Are there any plans to remedy this issue?



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