- Lab
- A Cloud Guru
Incremental Upgrades in Nomad
In this hands-on lab you will be creating a job, and then editing the job to increase how many allocations are sent to the cluster, to change the time it takes to update each running allocation when updates are performed. Then, you will test the changes to the Nomad job file by submitting a new version of the job, and checking to ensure that changes are performed as specified by the job file.
Path Info
Table of Contents
-
Challenge
Log in to the Provided Nomad Server
- Log in to the server as the
cloud_user
with the provided password to perform the tasks.
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.
- Log in to the server as the
-
Challenge
Create a Default `example.nomad` Job File, and Change the Count and Update Stanza
-
Using the appropriate commands, and the Nomad CLI, initialize a job file called
example.nomad
. -
Change the count to 2.
-
Change the
update
stanza, and set it to update only one job at a time, with a min_healthy_time of 50 seconds.
-
-
Challenge
Submit the Job
- Submit the
example.nomad
job to run. - Check to ensure it says placed 2 and healthy 2 before continuing.
- Submit the
-
Challenge
Change the `example.nomad` Job File to Use Redis Version 4, and Submit the Job
-
Edit the job file so that it will use Redis version 4.
-
While the original job is still running, submit the updated job to run.
-
Check that only one job gets updated at a time.
-
Once the deployment says healthy, check the logs to ensure that both jobs are running the updated version of Redis.
-
What's a lab?
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.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.