You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@yunikorn.apache.org by "Craig Condit (Jira)" <ji...@apache.org> on 2022/11/03 16:56:00 UTC

[jira] [Resolved] (YUNIKORN-1238) Setting fair node policy instead of nil is in NewNodeCollection

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

Craig Condit resolved YUNIKORN-1238.
------------------------------------
     Fix Version/s: 1.2.0
    Target Version: 1.2.0
        Resolution: Fixed

Merged to master. Thanks [~Yukali] for the contribution!

> Setting fair node policy instead of nil is in NewNodeCollection
> ---------------------------------------------------------------
>
>                 Key: YUNIKORN-1238
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-1238
>             Project: Apache YuniKorn
>          Issue Type: Improvement
>          Components: core - scheduler
>            Reporter: Chen Yu Teng
>            Assignee: Chen Yu Teng
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.2.0
>
>
> We can set node sorting policy with fair policy when partition called NewNodeCollection function.
> In [nodeCollection level|#L228-L235], the node sorting policy is nil and the order of nodes in nodeCollection is the time adding node. If partition call nodes.GetNodeSortingPolicy() which is nil, nil will be treated as fair although the behavior of node sorting is not the behavior with fair policy([code|#L1449-L1457]).
> In partition level,  original flow will be like.
>  # Creates nodeCollection that node sorting policy is nil([code|#L95])
>  # In updateNodeSortingPolicy function, partition updates related fields from config. If policy in config is empty , SortingPolicyFromString function will return fair policy, partition update node sorting policy by nodes.SetNodeSortingPolicy(fair policy)
> I want to modify the node sorting policy in 1 step and set the default node sorting policy is fair policy.
>  



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