Upgrading a Running Nomad Job on a Single Node

30 minutes
  • 4 Learning Objectives

About this Hands-on Lab

In this hands-on lab, you are tasked with upgrading a Nomad job, that is runnning on a single node. You will create the job and submit it to run. Then, while the job is active, make changes to the job file, and submit it to run again.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Log in to the Provided Nomad Server
  1. Log in to the server using the credentials provided:

    Note: The Nomad server has been configured with one server agent and one client agent. Docker has also been installed, so Nomad is ready to run jobs.

Create a Default `example.nomad` Job File
  1. Submit a default job to Nomad and wait until it has been marked as ready.
Update the `example.nomad` Job File
  1. Update the example.nomad job file to use Redis version 4.0, and then submit the job to run.

    Note: You should not stop the existing running job. The new job should replace the running job.

Verify the Update
  1. Check the logs for the running allocation, and verify that version 4 of Redis is now running.

Additional Resources

Nomad is new in your organization, and you have heard that you can replace a job that's running with a newer version, without having to stop the existing job.

In this lab, you will create a new nomad job, and submit it to run. Then, you will make a change to the version of the application in the job file, and submit it to run again. You will do this without stopping the existing job.

This is to show that Nomad is able to replace a running job with a newer version.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?