[ 
https://issues.apache.org/jira/browse/MESOS-2137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14271839#comment-14271839
 ] 

Michael Park commented on MESOS-2137:
-------------------------------------

The following are the 3 valid states of a Resource protobuf message that 
represents 2 cpus.

{code:title=1. unreserved}
message Resource {
  name: "cpus",
  value: 2,
  role: "*",
  reservation: STATIC
}
{code}

{code:title=2. statically reserved}
message Resource {
  name: "cpus",
  value: 2,
  role: R,
  reservation: STATIC
}
{code}

{code:title=3. dynamically  reserved}
message Resource {
  name: "cpus",
  value: 2,
  role: R,
  reservation: DYNAMIC
}
{code}

Note that the following is invalid:

{code:title=invalid}
message Resource {
  name: "cpus",
  value: 2,
  role: "*",
  reservation: DYNAMIC
}
{code}

This is due to the fact that role="*" means *unreserved*.

> Add ReservationType protobuf message for Dynamic Reservation
> ------------------------------------------------------------
>
>                 Key: MESOS-2137
>                 URL: https://issues.apache.org/jira/browse/MESOS-2137
>             Project: Mesos
>          Issue Type: Task
>            Reporter: Michael Park
>            Assignee: Michael Park
>              Labels: protobuf
>
> With the introduction of dynamic reservations, resources can be under one of 
> 2 reservation types: STATIC and DYNAMIC. We need to add a ReservationType to 
> the Resource protobuf in order to introduce this notion.



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

Reply via email to