Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
Update index.md
Browse files Browse the repository at this point in the history
updates because of Vale
  • Loading branch information
Casie Oxford committed Oct 5, 2020
1 parent 99dbda1 commit 04f466c
Showing 1 changed file with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ model: ../../data.yml

# Placement constraints

Placement constraints allow you to customize where a service is deployed in the DC/OS cluster.
You can use placement constraints to customize where in a DC/OS cluster services are deployed.
Placement constraints use the [Marathon operators](http://mesosphere.github.io/marathon/docs/constraints.html) syntax.
For example, `[["hostname", "UNIQUE"]]` ensures that at most one pod instance is deployed per agent.
For example, `[["hostname", "UNIQUE"]]` ensures that, at most, one pod instance is deployed per agent.

A common task is to specify a list of whitelisted systems to deploy to.
To achieve this, use the following syntax for the placement constraint:
Expand All @@ -21,17 +21,15 @@ To achieve this, use the following syntax for the placement constraint:
"placement_constraints": "hostname:LIKE:192.168.2.193",
```

<p class="message--important"><strong>IMPORTANT: </strong> Be sure to include excess capacity in such a scenario so that if one of the whitelisted systems goes down, there is still enough capacity to repair your service.</p>
<p class="message--important"><strong>IMPORTANT: </strong> Include excess capacity so that if one of the whitelisted systems goes down, there is still enough capacity to repair your service.</p>

## Updating placement constraints
## Update placement constraints

Clusters change, and so will your placement constraints.
However, already-running service pods will **not** be affected by changes in placement constraints.
This is because altering a placement constraint might invalidate the current placement of a running pod, and the pod will not be relocated automatically, as doing so is a destructive action.
We recommend using the following procedure to update the placement constraints of a pod:
Clusters change, and so will your placement constraints. Already-running service pods are **not** impacted by changes in placement constraints. Altering a placement constraint could invalidate the current placement of a running pod, and the pod is not relocated automatically, as doing so is a destructive action.
To update the placement constraints of a pod:

1. Update the placement constraint definition in the service.
1. For each affected pod, perform a `pod replace` procedure, one at a time. This will (destructively) move the pod to be in accordance with the new placement constraints.
1. For each affected pod, perform a `pod replace` procedure, one at a time. This (destructively) moves the pod into accordance with the new placement constraints.

# Grafana server placement constraints

Expand Down

0 comments on commit 04f466c

Please sign in to comment.