LABINTERMEDIATE

Nomad Job Update Strategies

Roll out application updates safely with Nomad's rolling, blue/green, and canary strategies.

60 minutes
hashicorp/nomad
Nomad Job Update Strategies - Platform Engineering Hands-On Lab Icon
Share this Lab

Lab Overview

Most applications are long-lived and need to be updated over time. Nomad has built-in support for rolling, blue/green, and canary updates through the job "update" stanza, and they work equally well with non-containerized and containerized workloads.

In this lab you deploy a real chat application on a 4-node Nomad cluster (1 server, 3 clients) backed by Consul service discovery and Consul Connect. NGINX acts as a load balancer that forwards requests to instances of the chat app, which stores its messages in a single MongoDB database reached over the Connect service mesh. The chat app's background color changes between versions so you can watch each rollout happen in real time:

  • Start with a light-background build run by Nomad's exec task driver from a compiled node.js binary.
  • Use a rolling update to switch to a dark-background binary, one instance at a time.
  • Use a blue/green deployment to move to a Docker version with the light background, then promote it.
  • Use a canary deployment to try a Docker version with the dark background, then roll it back.

You will also learn how Nomad lets you promote or fail blue/green and canary deployments so you can either ship a change or revert it. Follow the accompanying Nomad Job Update Strategies tutorials for more background.

We recommend completing the Nomad Basics, Nomad Simple Cluster, and Nomad Multi-Server Cluster labs first.

What You'll Learn

Verify the health of a Nomad and Consul cluster running Consul Connect

Deploy MongoDB, a chat application, and an NGINX load balancer as Nomad jobs

Perform a rolling update that replaces allocations one at a time

Perform a blue/green deployment and promote it to cut over traffic

Perform a canary deployment and fail it to roll back the change

Prerequisites

nomad-basics

nomad-simple-cluster

nomad-multi-server-cluster

linux-command-line

Technologies Covered

nomadrolling updateblue/greencanarydeploymentsconsul connectdocker

Choose your plan

Simple, Transparent Pricing

Unlock full access to TeKanAid courses, labs, and bootcamps

Buying for a team? Private corporate training is available for up to 15 learners.View team training
MonthlyQuarterly
Try Premium free for 7 days →

Just exploring? Start free below. Want the full experience? Try Premium free for 7 days (card required, $0 today).

Pro

All courses, with lab scripts to run on your own machine

$59/month

Renews automatically. Cancel anytime.

Final price verified at checkout.

  • Full access to all courses
  • Lab scripts to download and run on your own machine (hosted labs not included)
  • Progress tracking
  • Certificate of completion
  • Community access
  • Self-paced bootcamps
  • Premium puzzle library not included (5 free puzzles available)
  • New content access
Recommended

Premium

Full access, including unlimited hosted labs

$99/month

Renews automatically. Cancel anytime.

Final price verified at checkout.

  • Everything in Pro
  • Unlimited hands-on labs, fully hosted on TeKanAid Academy (nothing to set up)
  • Full access to the puzzle library
  • Lab AI Assistant
  • Priority support

Prefer a single course?

Purchase individual courses for a one-time fee of $79. Full access to course content, quizzes, certificates, and community features, lab access is not included.

Browse Courses

Just exploring? Start free, no account needed

Three free ways to start. All bridge into the paid Premium catalog when you're ready.

Not ready to commit? The crash course is email-only. No academy account required.

Ready to Get Started?

Start this hands-on lab and build real-world Platform Engineering skills

Get Access Now