[
https://issues.apache.org/jira/browse/MESOS-4476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15113608#comment-15113608
]
Guangya Liu commented on MESOS-4476:
------------------------------------
There is a patch doing similar thing as what you request:
https://reviews.apache.org/r/40375/
The background for this patch is that the mesos now support only one type of
revocable resources: the oversubscribed resources. But in MESOS-1607 we are
introducing a new type of revocable resources named as {{allocation slack}} and
rename the old oversubscribed resources as {{usage slack}}, the patch also kept
the backward compatibility issue.
One question for {{Set ReservationInfo for both static and dynamic
reservations}}, the static reservation do not request {{principal}}, so what
will be set for {{ReservationInfo}} wit static reservation?
> Set ReservationInfo for static reservations
> -------------------------------------------
>
> Key: MESOS-4476
> URL: https://issues.apache.org/jira/browse/MESOS-4476
> Project: Mesos
> Issue Type: Improvement
> Components: master
> Reporter: Neil Conway
> Labels: mesosphere, reservations
>
> Currently, we do not set {{ReservationInfo}} for static reservations.
> Moreover, we suggest that frameworks determine if a resource offer contains
> dynamically reserved resources by checking whether the {{ReservationInfo}}
> field is set. This means that if we want to add new reservation-specific
> information (e.g., labels), we can't put those fields into
> {{ReservationInfo}} if we want them to be supported by static reservations.
> Proposed plan:
> * Continue to add reservation-specific information to {{ReservationInfo}},
> which means it won't be supported for static reservations
> * Set {{ReservationInfo}} for both static and dynamic reservations
> * Introduce a new enum to describe the type of the reservation, and encourage
> frameworks to use this field to check for whether a resource offer has a
> reservation.
> The tricky part is the backward compatibility story.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)