Merge pull request #2616 from hashicorp/docs-fix-0.5.5-upgrade

Fix upgrade instructions for docker load option
This commit is contained in:
Michael Schurter 2017-05-04 10:33:37 -07:00 committed by GitHub
commit c2592f9250

View file

@ -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 servers to version 0.5.5 or later.
* 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:
```hcl
constraint {
attribute = "nomad.version"
operator = "version"
value = ">= 0.5.5"
}
```
* Drain and shutdown old client nodes.
### Validation changes