[
https://issues.apache.org/jira/browse/MESOS-2600?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14652469#comment-14652469
]
Michael Park commented on MESOS-2600:
-------------------------------------
{noformat}
commit dc2e130a7faccb6ee28c207c8337cb58dfc3ca5c
Author: Michael Park <[email protected]>
Date: Fri Jul 24 15:43:00 2015 -0700
Added a new API call 'updateAvailable' to the allocator.
Needed to implement the master HTTP endpoints: `/reserve`, `/unreserve`,
`/create` and `/destroy`.
This API is similar to `updateSlave` which is currently very specific to
oversubscription. I considered consolidating `updateAvailable` and
`updateSlave` but it will require making offers be generated within the
allocator to enable this.
In specific, `updateAvailable` could fail if there aren't sufficient
available resources to update, whereas `updateSlave` avoids failing by
keeping the allocator in an over-allocated state. For `updateSlave`,
leaving the allocator in an over-allocated state is ok. This is because
it does not modify resources therefore `total - allocated` will work out
to __empty__. `updateAvailable` cannot leave the allocator in an
over-allocated state, because it modifies resources, and therefore
`total - allocated` is not guaranteed to yield __empty__.
Review: https://reviews.apache.org/r/35947
{noformat}
> Add /reserve and /unreserve endpoints on the master for dynamic reservation
> ---------------------------------------------------------------------------
>
> Key: MESOS-2600
> URL: https://issues.apache.org/jira/browse/MESOS-2600
> Project: Mesos
> Issue Type: Task
> Components: master
> Reporter: Michael Park
> Assignee: Michael Park
> Priority: Critical
> Labels: mesosphere
>
> Enable operators to manage dynamic reservations by Introducing the
> {{/reserve}} and {{/unreserve}} HTTP endpoints on the master.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)