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

Add Resource.AllocationInfo in Offer to indicate a single role per offer.

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.0
    • Component/s: scheduler api
    • Labels:
      None

      Description

      With multi-role framework support, we need to ensure that the framework can determine which resources are allocated to which roles. Since we'd like to preserve the offer semantics between a single multi-tenant scheduler and multiple single-tenant schedulers, we would like to ensure that an offer only contains resources allocated to a single role:

      message Offer {
        required OfferID id = 1;
        ...
        required AgentID agent_id = 3;
        ...
        repeated Resource resources = 5;
        ...
      
      
        // An offer represent resources allocated to *one* of the
        // roles managed by the scheduler. (Therefore, each
        // `Offer.resources[i].allocation_info` will match the
        // top level `Offer.allocation_info`).
        optional Resource.AllocationInfo allocation_info = 10;
      }
      

      The assumption is that this will make it easier for schedulers to manage offers, since each offer is made to a single tenant.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                guoger Jay Guo
                Reporter:
                bmahler Benjamin Mahler
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: