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

Update state endpoints to allow clients to determine how many resources for a given role have been used

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.27.1
    • None
    • None

    Description

      AFAICT, this is currently impossible. Say I have a cluster with 4CPUs reserved for spark and 4CPUs unreserved, I have a framework registered as spark, and I would like to determine how many CPUs reserved for Spark have been used. AFAIK, there are two endpoints with interesting information: /master/state and /master/roles. Both endpoints tell me how many resources are used by the framework registered as spark, but it doesn't tell me which role those resources belong to (i.e. are they reserved or unreserved).

      A simple fix would be to update /master/roles to split out resources into "reserved" and "unreserved". However, this will fail to solve the problem if (and hopefully when) Mesos supports multi-role frameworks.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mgummelt Michael Gummelt
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: