From 3e7fb10718c724135408bb8931c15d8ffd8f3895 Mon Sep 17 00:00:00 2001 From: Michael Schurter Date: Thu, 4 May 2017 10:14:03 -0700 Subject: [PATCH 1/2] Fix upgrade instructions for docker load option --- .../docs/upgrade/upgrade-specific.html.md | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/website/source/docs/upgrade/upgrade-specific.html.md b/website/source/docs/upgrade/upgrade-specific.html.md index 2f2ff2632..03216cbbc 100644 --- a/website/source/docs/upgrade/upgrade-specific.html.md +++ b/website/source/docs/upgrade/upgrade-specific.html.md @@ -25,8 +25,24 @@ images to load, in 0.5.5 it has been changed to a single string. No functionality was changed. Even if more than one item was specificed prior to 0.5.5 only the first item was used. -If you have jobs that use the `load` option first upgrade all nodes to 0.5.5, -then resubmit those jobs with `load` as a single string. +To do a zero-downtime deploy with jobs that use the `load` option: + +* Upgrade to servers to 0.5.5 or later. + +* Deploy new client nodes on the same version. + +* Resubmit jobs with the `load` option fixed and a constraint to only run on + version 0.5.5 or later: + +```hcl + constraint { + attribute = "nomad.version" + operator = "version" + value = ">= 0.5.5" + } +``` + +* Drain and shutdown old client nodes. ### Validation changes From 1e7e83451ccbec05b49fcc3f45eeec13a9870d1c Mon Sep 17 00:00:00 2001 From: Michael Schurter Date: Thu, 4 May 2017 10:24:50 -0700 Subject: [PATCH 2/2] Typeos --- website/source/docs/upgrade/upgrade-specific.html.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/source/docs/upgrade/upgrade-specific.html.md b/website/source/docs/upgrade/upgrade-specific.html.md index 03216cbbc..0274915c0 100644 --- a/website/source/docs/upgrade/upgrade-specific.html.md +++ b/website/source/docs/upgrade/upgrade-specific.html.md @@ -27,9 +27,9 @@ functionality was changed. Even if more than one item was specificed prior to To do a zero-downtime deploy with jobs that use the `load` option: -* Upgrade to servers to 0.5.5 or later. +* Upgrade servers to version 0.5.5 or later. -* Deploy new client nodes on the same version. +* Deploy new client nodes on the same version as the servers. * Resubmit jobs with the `load` option fixed and a constraint to only run on version 0.5.5 or later: