You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Michael Park (JIRA)" <ji...@apache.org> on 2015/01/09 21:41:35 UTC

[jira] [Comment Edited] (MESOS-2137) Add ReservationType protobuf message for Dynamic Reservation

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

Michael Park edited comment on MESOS-2137 at 1/9/15 8:41 PM:
-------------------------------------------------------------

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*.


was (Author: mcypark):
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)