From 06a5dd9087cf3f39d22aaeea6c6d75c3a06ba81d Mon Sep 17 00:00:00 2001 From: Michael Schurter Date: Thu, 12 Apr 2018 15:39:46 -0700 Subject: [PATCH] docs: add default migrate stanza to upgrade docs --- .../source/docs/upgrade/upgrade-specific.html.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/website/source/docs/upgrade/upgrade-specific.html.md b/website/source/docs/upgrade/upgrade-specific.html.md index c31aaacc4..9a06024b4 100644 --- a/website/source/docs/upgrade/upgrade-specific.html.md +++ b/website/source/docs/upgrade/upgrade-specific.html.md @@ -57,9 +57,20 @@ Node draining via the [`node drain`][drain-cli] command or the [drain API][drain-api] has been substantially changed in Nomad 0.8. In Nomad 0.7.1 and earlier draining a node would immediately stop all allocations on the node being drained. Nomad 0.8 now supports a [`migrate`][migrate] stanza in job -specifications to control how many allocations may be migrated at once. +specifications to control how many allocations may be migrated at once. For +service jobs with a `count > 1` the default migrate stanza will be used: -See the [Decommissioning Nodes guide](/guides/node-draining.html) for details. +```hcl + migrate { + max_parallel = 1 + health_check = "checks" + min_healthy_time = "10s" + healthy_deadline = "5m" + } +``` + +See the [`migrate` stanza documentation][migrate] and [Decommissioning Nodes +guide](/guides/node-draining.html) for details. ### Periods in Environment Variable Names No Longer Escaped