Uploaded image for project: 'Apache YuniKorn'
  1. Apache YuniKorn
  2. YUNIKORN-1565 [Umbrella] Node attribute related improvement and bug fix.
  3. YUNIKORN-1564

Constants for node attributes are not consistent in scheduler interface and shim

    XMLWordPrintableJSON

Details

    Description

      Constants for node attributes are not consistent in scheduler interface and shim:

      In scheduler interface and core side usage, we use prefix "si":

      // Constants for node attributes
      const (
         ARCH                = "si/arch"
         HostName            = "si/hostname"
         RackName            = "si/rackname"
         OS                  = "si/os"
         InstanceType        = "si/instance-type"
         FailureDomainZone   = "si/zone"
         FailureDomainRegion = "si/region"
         LocalImages         = "si/local-images"
         NodePartition       = "si/node-partition"
      ) 

      But in shim we pass the prefix "si.io":

      // Cluster
      const DefaultNodeAttributeHostNameKey = "si.io/hostname"
      const DefaultNodeAttributeRackNameKey = "si.io/rackname"
      const DefaultNodeAttributeNodeLabelsKey = "si.io/nodelabels" 

       

      Attachments

        Issue Links

          Activity

            People

              zhuqi Qi Zhu
              zhuqi Qi Zhu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: