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

Quota headroom tracking may be incorrect in the presence of hierarchical reservation.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.0
    • Fix Version/s: 1.4.2, 1.5.1, 1.6.0
    • Component/s: allocation
    • Labels:
      None
    • Target Version/s:
    • Sprint:
      Mesosphere Sprint 75
    • Story Points:
      2

      Description

      When calculating the global quota headroom, we subtract all unallocated reservations by doing

      for each role with reservation
      	availableHeadroom -= role total reservation - role allocated reservation;
      

      We only traverse roles with reservation. In the presence of hierarchal reservation, this is problematic. Consider a child role (e.g. "a/b") with no reservations, it can still get reserved resources if its ancestor has reservations (e.g. "a" has reservations). However, allocated reserved resources of role “a/b” will be ignored given the above code.

      The consequence is that availableHeadroom will be underestimated because allocated reservations are underestimated. This would lead to excessive resources set aside for quota headroom.

        Attachments

          Activity

            People

            • Assignee:
              mzhu Meng Zhu
              Reporter:
              mzhu Meng Zhu
              Shepherd:
              Benjamin Mahler
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: