github.com/ranjib/nomad@v0.1.1-0.20160225204057-97751b02f70b/website/source/docs/upgrade/upgrade-specific.html.md (about)

     1  ---
     2  layout: "docs"
     3  page_title: "Upgrading Specific Versions"
     4  sidebar_current: "docs-upgrade-specific"
     5  description: |-
     6    Specific versions of Nomad may have additional information about the upgrade
     7    process beyond the standard flow.
     8  ---
     9  
    10  # Upgrading Specific Versions
    11  
    12  The [upgrading page](/docs/upgrade/index.html) covers the details of doing
    13  a standard upgrade. However, specific versions of Nomad may have more
    14  details provided for their upgrades as a result of new features or changed
    15  behavior. This page is used to document those details separately from the
    16  standard upgrade flow.
    17  
    18  ## Nomad 0.3.0
    19  
    20  Nomad 0.3.0 has made several substantial changes to job files included a new
    21  `log` block and variable interpretation syntax (`${var}`), a modified `restart`
    22  policy syntax, and minimum resources for tasks as well as validation. These
    23  changes require a slight change to the default upgrade flow.
    24  
    25  After upgrading the version of the servers, all previously submitted jobs must
    26  be resubmitted with the updated job syntax using a Nomad 0.3.0 binary.
    27  
    28  * All instances of `$var` must be converted to the new syntax of `${var}`
    29  
    30  * All tasks must provide their required resources for CPU, memory and disk as
    31    well as required network usage if ports are required by the task.
    32  
    33  * Restart policies must be updated to indicate whether it is desired for the
    34    task to restart on failure or to fail using `mode = "delay"` or `mode =
    35    "fail"` respectively.
    36  
    37  * Service names that include periods will fail validation. To fix, remove any
    38    periods from the service name before running the job.
    39  
    40  After updating the Servers and job files, Nomad Clients can be upgraded by first
    41  draining the node so no tasks are running on it. This can be verified by running
    42  `nomad node-status <node-id>` and verify there are no tasks in the `running`
    43  state. Once that is done the client can be killed, the `data_dir` should be
    44  deleted and then Nomad 0.3.0 can be launched.