Repository: mesos
Updated Branches:
  refs/heads/master b1538db6b -> 1cbda33bb


Fixed JSON snippets in “reservation.md”.


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/1cbda33b
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/1cbda33b
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/1cbda33b

Branch: refs/heads/master
Commit: 1cbda33bbf5ce5e0cee8c9fb2b670811e1b53ea7
Parents: b1538db
Author: Alexander Rukletsov <[email protected]>
Authored: Wed Apr 25 14:44:15 2018 +0200
Committer: Alexander Rukletsov <[email protected]>
Committed: Wed Apr 25 14:46:01 2018 +0200

----------------------------------------------------------------------
 docs/reservation.md | 150 +++++++++++++++++++++++------------------------
 1 file changed, 75 insertions(+), 75 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/1cbda33b/docs/reservation.md
----------------------------------------------------------------------
diff --git a/docs/reservation.md b/docs/reservation.md
index a6eb02a..527cdb8 100644
--- a/docs/reservation.md
+++ b/docs/reservation.md
@@ -35,11 +35,11 @@ __CAVEAT:__ In order to modify a static reservation, the 
operator must drain and
 
 It's often more convenient to specify the total resources available on
 the slave as unreserved via the `--resources` flag and manage reservations
-dynamically (see below) via the master HTTP endpoints. However static 
reservation
-provides a way for the operator to more deterministically control the 
reservations
-(roles, amount, principals) before the agent is exposed to the master and
-frameworks. One use case is for the operator to dedicate entire agents for
-specific roles.
+dynamically (see below) via the master HTTP endpoints. However static
+reservation provides a way for the operator to more deterministically control
+the reservations (roles, amount, principals) before the agent is exposed to the
+master and frameworks. One use case is for the operator to dedicate entire
+agents for specific roles.
 
 
 ## Dynamic Reservation
@@ -279,8 +279,8 @@ these resources. First, we receive a resource offer 
(copy/pasted from above):
         }
 
 We can unreserve the 8 CPUs and 4096 MB of RAM by sending the following
-`Offer::Operation` message. `Offer::Operation::Unreserve` has a `resources` 
field
-which we can use to specify the resources to be unreserved.
+`Offer::Operation` message. `Offer::Operation::Unreserve` has a `resources`
+field which we can use to specify the resources to be unreserved.
 
         {
           "type": Offer::Operation::UNRESERVE,
@@ -344,9 +344,9 @@ allocated to role `"engineering/backend"`, reserved to 
`"engineering"`.
               "scalar": { "value": 12 },
               "reservations": [
                 {
-                  type: DYNAMIC,
-                  role: "engineering",
-                  principal: <principal>,
+                  "type": "DYNAMIC",
+                  "role": "engineering",
+                  "principal": <principal>,
                 }
               ]
             },
@@ -357,9 +357,9 @@ allocated to role `"engineering/backend"`, reserved to 
`"engineering"`.
               "scalar": { "value": 6144 },
               "reservations": [
                 {
-                  type: DYNAMIC,
-                  role: "engineering",
-                  principal: <principal>,
+                  "type": "DYNAMIC",
+                  "role": "engineering",
+                  "principal": <principal>,
                 }
               ]
             }
@@ -397,14 +397,14 @@ if authentication is disabled.
                 "scalar": { "value": 8 },
                 "reservations": [
                   {
-                    type: DYNAMIC,
-                    role: "engineering",
-                    principal: <principal>,
+                    "type": "DYNAMIC",
+                    "role": "engineering",
+                    "principal": <principal>,
                   },
                   {
-                    type: DYNAMIC,
-                    role: "engineering/backend",
-                    principal: <framework_principal>,
+                    "type": "DYNAMIC",
+                    "role": "engineering/backend",
+                    "principal": <framework_principal>,
                   }
                 ]
               },
@@ -415,14 +415,14 @@ if authentication is disabled.
                 "scalar": { "value": 4096 },
                 "reservations": [
                   {
-                    type: DYNAMIC,
-                    role: "engineering",
-                    principal: <principal>,
+                    "type": "DYNAMIC",
+                    "role": "engineering",
+                    "principal": <principal>,
                   },
                   {
-                    type: DYNAMIC,
-                    role: "engineering/backend",
-                    principal: <framework_principal>,
+                    "type": "DYNAMIC",
+                    "role": "engineering/backend",
+                    "principal": <framework_principal>,
                   }
                 ]
               }
@@ -447,14 +447,14 @@ following reserved resources:
               "scalar": { "value": 8 },
               "reservations": [
                 {
-                  type: DYNAMIC,
-                  role: "engineering",
-                  principal: <principal>,
+                  "type": "DYNAMIC",
+                  "role": "engineering",
+                  "principal": <principal>,
                 },
                 {
-                  type: DYNAMIC,
-                  role: "engineering/backend",
-                  principal: <framework_principal>,
+                  "type": "DYNAMIC",
+                  "role": "engineering/backend",
+                  "principal": <framework_principal>,
                 }
               ]
             },
@@ -465,14 +465,14 @@ following reserved resources:
               "scalar": { "value": 4096 },
               "reservations": [
                 {
-                  type: DYNAMIC,
-                  role: "engineering",
-                  principal: <principal>,
+                  "type": "DYNAMIC",
+                  "role": "engineering",
+                  "principal": <principal>,
                 },
                 {
-                  type: DYNAMIC,
-                  role: "engineering/backend",
-                  principal: <framework_principal>,
+                  "type": "DYNAMIC",
+                  "role": "engineering/backend",
+                  "principal": <framework_principal>,
                 }
               ]
             },
@@ -505,14 +505,14 @@ the `reservations` field being __popped__. First, we 
receive a resource offer
               "scalar": { "value": 8 },
               "reservations": [
                 {
-                  type: DYNAMIC,
-                  role: "engineering",
-                  principal: <principal>,
+                  "type": "DYNAMIC",
+                  "role": "engineering",
+                  "principal": <principal>,
                 },
                 {
-                  type: DYNAMIC,
-                  role: "engineering/backend",
-                  principal: <framework_principal>,
+                  "type": "DYNAMIC",
+                  "role": "engineering/backend",
+                  "principal": <framework_principal>,
                 }
               ]
             },
@@ -523,14 +523,14 @@ the `reservations` field being __popped__. First, we 
receive a resource offer
               "scalar": { "value": 4096 },
               "reservations": [
                 {
-                  type: DYNAMIC,
-                  role: "engineering",
-                  principal: <principal>,
+                  "type": "DYNAMIC",
+                  "role": "engineering",
+                  "principal": <principal>,
                 },
                 {
-                  type: DYNAMIC,
-                  role: "engineering/backend",
-                  principal: <framework_principal>,
+                  "type": "DYNAMIC",
+                  "role": "engineering/backend",
+                  "principal": <framework_principal>,
                 }
               ]
             },
@@ -539,8 +539,8 @@ the `reservations` field being __popped__. First, we 
receive a resource offer
 
 
 We can unreserve the 8 CPUs and 4096 MB of RAM by sending the following
-`Offer::Operation` message. `Offer::Operation::Unreserve` has a `resources` 
field
-which we can use to specify the resources to be unreserved.
+`Offer::Operation` message. `Offer::Operation::Unreserve` has a `resources`
+field which we can use to specify the resources to be unreserved.
 
         {
           "type": Offer::Operation::UNRESERVE,
@@ -553,14 +553,14 @@ which we can use to specify the resources to be 
unreserved.
                 "scalar": { "value": 8 },
                 "reservations": [
                   {
-                    type: DYNAMIC,
-                    role: "engineering",
-                    principal: <principal>,
+                    "type": "DYNAMIC",
+                    "role": "engineering",
+                    "principal": <principal>,
                   },
                   {
-                    type: DYNAMIC,
-                    role: "engineering/backend",
-                    principal: <framework_principal>,
+                    "type": "DYNAMIC",
+                    "role": "engineering/backend",
+                    "principal": <framework_principal>,
                   }
                 ]
               },
@@ -571,14 +571,14 @@ which we can use to specify the resources to be 
unreserved.
                 "scalar": { "value": 4096 },
                 "reservations": [
                   {
-                    type: DYNAMIC,
-                    role: "engineering",
-                    principal: <principal>,
+                    "type": "DYNAMIC",
+                    "role": "engineering",
+                    "principal": <principal>,
                   },
                   {
-                    type: DYNAMIC,
-                    role: "engineering/backend",
-                    principal: <framework_principal>,
+                    "type": "DYNAMIC",
+                    "role": "engineering/backend",
+                    "principal": <framework_principal>,
                   }
                 ]
               },
@@ -625,9 +625,9 @@ We send an HTTP POST request to the master's
               "scalar": { "value": 8 },
               "reservations": [
                 {
-                  type: DYNAMIC,
-                  role: "ads",
-                  principal: <operator_principal>,
+                  "type": "DYNAMIC",
+                  "role": "ads",
+                  "principal": <operator_principal>,
                 }
               ]
             },
@@ -637,9 +637,9 @@ We send an HTTP POST request to the master's
               "scalar": { "value": 4096 },
               "reservations": [
                 {
-                  type: DYNAMIC,
-                  role: "ads",
-                  principal: <operator_principal>,
+                  "type": "DYNAMIC",
+                  "role": "ads",
+                  "principal": <operator_principal>,
                 }
               ]
             }
@@ -679,9 +679,9 @@ We can send an HTTP POST request to the master's
               "scalar": { "value": 8 },
               "reservations": [
                 {
-                  type: DYNAMIC,
-                  role: "ads",
-                  principal: <reserver_principal>,
+                  "type": "DYNAMIC",
+                  "role": "ads",
+                  "principal": <reserver_principal>,
                 }
               ]
             },
@@ -691,9 +691,9 @@ We can send an HTTP POST request to the master's
               "scalar": { "value": 4096 },
               "reservations": [
                 {
-                  type: DYNAMIC,
-                  role: "ads",
-                  principal: <reserver_principal>,
+                  "type": "DYNAMIC",
+                  "role": "ads",
+                  "principal": <reserver_principal>,
                 }
               ]
             }

Reply via email to