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

Improve presentation of resource units in YuniKorn UI

    XMLWordPrintableJSON

Details

    Description

      As discussed in Slack, I will make below changes of resources presentation in YuniKorn UI.

      1. Chang memory unit to binary-based. For example: 'kB', 'MB', 'GB', 'TB', 'PB’→’Ki’, ‘Mi’, ‘Gi’, ‘Ti’, ‘Pi’
      2. Align CPU unit with K8S, remove ‘k’ from CPU unit and use ‘m’ to present millicpu. For example: 1000 → 1000m, 10k → 10
      3. Change the fixed digit number from 1 to 2

       

      Record the motivations here:

      • Regarding Memory unit, the primary motivation is that most resource monitoring systems are using binary-based. For instance, in the K8S Dashboard, the node capacity is displayed as 30.98Gi, while in the YuniKorn UI, it shows as 33.3 GB. Without a calculator, comparing these values becomes challenging.
      • Regarding CPU unit, the motivation is to align with K8S
      • Regarding the fixed digit number change. Consider this scenario, if I sumitted a job with 1000Mi memory, the current UI show 1.0 GB memory allocated. However, the true value is 1.048576 GB. Change to 2 fixed digits is more accuracy.

      Attached the proposed result after changing.

      Attachments

        1. YuniKorn UI Units.png
          477 kB
          Yu-Lin Chen
        2. YuniKorn UI unit (CPU v2).png
          96 kB
          Yu-Lin Chen

        Issue Links

          Activity

            People

              Yu-Lin Chen Yu-Lin Chen
              Yu-Lin Chen Yu-Lin Chen
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: