Deploying a Nomad Application in a Cluster

30 minutes
  • 4 Learning Objectives

About this Hands-on Lab

It’s important when learning about Nomad, that you are able to run more than one copy of a job in the cluster when required. In this hands-on lab, you are tasked with creating a job, and then changing that job so it will run more than once.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Log in to the Server Named `nomad-server0`
  1. Log in to the server using the credentials provided.

    Note: It may take several minutes after the lab has started before the cluster is ready to receive jobs. You should wait to perform the tasks in this lab, until a nomad node status shows 2 ready nodes.

Create a Default Nomad Job Named ‘example.nomad’
  1. This job can be created using Nomad commands. The job should run redis as a docker image.
Update the Job So It Runs on Two Nodes at the Same Time
  1. Edit the example.nomad file, and update it to run 2 copies of the job in the cluster.
Submit the Job and Verify the Update
  1. The job should now be running twice. Check the status of the job, and verify that there are at least two running.

Additional Resources

A junior team member has asked how you to get a job to run more than one allocation at a time.

To show how this is performed, you will create a Nomad job, and then edit the job, so it will run two allocations.

Note: The allocations may or may not be running on the same client node. The focus is simply to get two allocations running.

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.

Get Started
Who’s going to be learning?

How many seats do you need?

  • $499 USD per seat per year
  • Billed Annually
  • Renews in 12 months

Ready to accelerate learning?

For over 25 licenses, a member of our sales team will walk you through a custom tailored solution for your business.


$2,495.00

Checkout
Sign In
Welcome Back!

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