Michael Park created MESOS-2475:
-----------------------------------

             Summary: Add the Resource::ReservationInfo protobuf message
                 Key: MESOS-2475
                 URL: https://issues.apache.org/jira/browse/MESOS-2475
             Project: Mesos
          Issue Type: Bug
            Reporter: Michael Park
            Assignee: Michael Park


The {{Resource::ReservationInfo}} protobuf message encapsulates information 
needed to keep track of reservations. It's named {{ReservationInfo}} rather 
than {{Reservation}} to keep consistency with {{Resource::DiskInfo}}.

Here's essentially what it will look like:

{code}
message ReservationInfo {
  // Anyone can set this ID at the time of reservation in order to keep track.
  optional string id;

  // If this is set, it means that the resource is reserved for this particular
  // framework. Otherwise, the resource is reserved for the role.
  optional string framework_id;

  // Indicates the principal of the operator or framework that created the
  // reservation. This is used to determine whether this resource can be 
  // unreserved by an operator or a framework by checking the
  // "unreserve" ACL.
  optional string principal;
}

// If this is set, this resource was dynamically reserved by an operator or 
// a framework. Otherwise, this resource was static configured by an
// operator via the --resources flag.
optional ReservationInfo reservation;
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to