Uploaded image for project: 'Apache YuniKorn'
  1. Apache YuniKorn
  2. YUNIKORN-1238

Setting fair node policy instead of nil is in NewNodeCollection

    XMLWordPrintableJSON

Details

    Description

      We can set node sorting policy with fair policy when partition called NewNodeCollection function.

      In nodeCollection level, 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).

      In partition level,  original flow will be like.

      1. Creates nodeCollection that node sorting policy is nil(code)
      2. 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.

       

      Attachments

        Issue Links

          Activity

            People

              Yukali Chen Yu Teng
              Yukali Chen Yu Teng
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: