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`
- 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 2ready
nodes.
- Log in to the server using the credentials provided.
- Create a Default Nomad Job Named ‘example.nomad’
- This job can be created using Nomad commands. The job should run
redis
as a docker image.
- This job can be created using Nomad commands. The job should run
- Update the Job So It Runs on Two Nodes at the Same Time
- Edit the
example.nomad
file, and update it to run 2 copies of the job in the cluster.
- Edit the
- Submit the Job and Verify the Update
- The job should now be running twice. Check the status of the job, and verify that there are at least two running.