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

Remove instanceType from scheduling cycle

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              yangpoan PoAn Yang
              wilfreds Wilfred Spiegelenburg
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: