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

remove common.Node from the shim

    XMLWordPrintableJSON

Details

    Description

      The node code seems overly complex with 3 types of nodes:

      • cache.SchedulerNode
      • framework.NodeInfo
      • common.Node

      The first two we really need as one is the internal cache node, and the other one is K8s node.
      The last one common.Node is only used for communication between the cache and the si_helper code. We do not really need that object. It is short lived, one function call, and for some of the calls we only really use one field from the object.
      Creating the object and almost immediately dropping is GC overhead. It is cheaper and simpler to just pass the field(s) directly into the si_helper as we do for the application.

      Attachments

        Issue Links

          Activity

            People

              manirajv06@gmail.com Manikandan R
              wilfreds Wilfred Spiegelenburg
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: