Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-9608

Refactor and Improve `class ResourceQuantity`.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.8.0
    • None
    • Resource Mgmt RI11 Sp 40, Resource Mgmt RI11 Sp 41, Resource Mgmt RI12 Sp 42
    • 5

    Description

      Currently, the `ResourceQuantity` only provides a minimal map interface with no built-in arithmetic and contains operations. This makes it unwieldy.

      The intention was to avoid the ambiguities between "absent-means-zero" (guarantee like semantic) and "absent-means-infinite" (limits like semantic). Instead of only providing a minimal interface and leave the rest to the caller, we should provide two classes for each semantic:

      • "ResourceQuantities" will have "absent-means-zero" semantic
      • "ResourceLimits" will have "absent-means-infinite" semantic

      Attachments

        Activity

          People

            mzhu Meng Zhu
            mzhu Meng Zhu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: