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

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

     [ https://issues.apache.org/jira/browse/YUNIKORN-1889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wilfred Spiegelenburg resolved YUNIKORN-1889.
---------------------------------------------
    Fix Version/s: 1.4.0
       Resolution: Fixed

Change committed, 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
>            Assignee: PoAn Yang
>            Priority: Critical
>              Labels: newbie, pull-request-available
>             Fix For: 1.4.0
>
>
> 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