You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by vi...@apache.org on 2016/02/11 20:33:38 UTC
[3/3] mesos git commit: Updated reservation documentation.
Updated reservation documentation.
Clarified differences between the RESERVE offer operation and the `/reserve`
operator endpoint.
Review: https://reviews.apache.org/r/43201/
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/26f3efdf
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/26f3efdf
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/26f3efdf
Branch: refs/heads/master
Commit: 26f3efdf9400962ee17de5eebaee39b15275751c
Parents: 83f2deb
Author: Greg Mann <gr...@mesosphere.io>
Authored: Thu Feb 11 11:32:53 2016 -0800
Committer: Vinod Kone <vi...@gmail.com>
Committed: Thu Feb 11 11:32:53 2016 -0800
----------------------------------------------------------------------
docs/reservation.md | 19 ++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/26f3efdf/docs/reservation.md
----------------------------------------------------------------------
diff --git a/docs/reservation.md b/docs/reservation.md
index 2533710..51fa7fc 100644
--- a/docs/reservation.md
+++ b/docs/reservation.md
@@ -41,7 +41,7 @@ __NOTE:__ This feature is supported for backwards compatibility.
As mentioned in [Static Reservation](#static-reservation-since-0140), specifying
the reserved resources via the `--resources` flag makes the reservation static.
-This is, statically reserved resources cannot be reserved for another role nor
+That is, statically reserved resources cannot be reserved for another role nor
be unreserved. Dynamic Reservation enables operators and authorized frameworks
to reserve and unreserve resources post slave-startup.
@@ -53,11 +53,14 @@ see the [authorization documentation](authorization.md).
* `Offer::Operation::Reserve` and `Offer::Operation::Unreserve` messages are
available for __frameworks__ to send back via the `acceptOffers` API as a
- response to a resource offer.
+ response to a resource offer. Each framework may only reserve resources for
+ its own role.
* `/reserve` and `/unreserve` HTTP endpoints allow __operators__ to manage
- dynamic reservations through the master. NOTE: As of 0.27.0, these endpoints
- cannot be used when HTTP authentication is disabled due to the current
- implementation. This will change in version 0.28.0.
+ dynamic reservations through the master. Operators may currently reserve
+ resources for any role, although this
+ [will change](https://issues.apache.org/jira/browse/MESOS-4591). NOTE: As of
+ 0.27.0, these endpoints cannot be used when HTTP authentication is disabled
+ due to the current implementation. This will change in version 0.28.0.
In the following sections, we will walk through examples of each of the
interfaces described above.
@@ -241,8 +244,10 @@ operators and administrative tools.
Suppose we want to reserve 8 CPUs and 4096 MB of RAM for the `ads` role on a
slave with id=`<slave_id>` (note that it is up to the user to find the ID of the
slave that hosts the desired resources; the request will fail if sufficient
-unreserved resources cannot be found on the slave). We send an HTTP POST request
-to the `/reserve` HTTP endpoint like so:
+unreserved resources cannot be found on the slave). In this case, the principal
+included in the request will be the principal of an authorized operator rather
+than the principal of a framework registered under the `ads` role. We send an
+HTTP POST request to the `/reserve` HTTP endpoint like so:
$ curl -i \
-u <operator_principal>:<password> \