You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@yunikorn.apache.org by "PoAn Yang (Jira)" <ji...@apache.org> on 2023/08/01 01:50:00 UTC

[jira] [Commented] (YUNIKORN-1889) Remove instanceType from scheduling cycle

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

PoAn Yang commented on YUNIKORN-1889:
-------------------------------------

I would like to try this. May I assign it to myself? Thanks.

> Remove instanceType from scheduling cycle
> -----------------------------------------
>
>                 Key: YUNIKORN-1889
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-1889
>             Project: Apache YuniKorn
>          Issue Type: Bug
>          Components: core - scheduler
>    Affects Versions: 1.3.0
>            Reporter: Wilfred Spiegelenburg
>            Priority: Critical
>              Labels: newbie
>
> There is no need for the node instanceType in the scheduling cycle or in the preemptor at all.
> The only case in which it is used in the preemptor and that is to create a reserved allocation. If, and when, a reserved allocation is created in the {{TryPreemption}}  we return a non nil allocation. That is the *only* time.
> That non nil allocation in the end gets processed at the {{Partition}} level. That processing gets finalised in {{partition.allocate()}}. We have a hold of the node itself there, we should add the instance type at that point to the allocation. That same {{partition.allocate()}} is called for all post processing of all allocations. That means we can remove the instance type from all scheduling calls and set it in one location.
> It will indirectly also allow us to fix a bug that occurs when allocating a reservation on a non-reserved node. That case changes the node that the allocation is linked to and could thus change the node type.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: issues-help@yunikorn.apache.org