Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
Google Cloud Platform icon
Labs

Using Spread Job Placement for a Nomad Job in a Cluster

In this lab, we will be creating a job in Nomad that runs 10 allocations. We will set this up in such a way that 70% of the allocations will go to one location and 30% of allocations will go to another. To accomplish this, we will use spread job placement to spread the jobs around our cluster.

Google Cloud Platform icon
Labs

Path Info

Level
Clock icon Advanced
Duration
Clock icon 30m
Published
Clock icon Nov 06, 2020

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. Challenge

    Log in to the Provided Nomad Server

    Log into the server as "cloud_user" with the provided password to perform the tasks.

  2. Challenge

    Create a Job and Add a Weighting of 70% for dc1

    You will create a Nomad job called spread-test.nomad. As part of the job creation, you will set it to start 10 allocations. This job will make use of a Nomad stanza to spread the allocations between two data centers, dc1 and dc2, with 70% of the allocations going to dc1.

  3. Challenge

    Submit the Job to Run in the Cluster

    Submit the job you created to run in the cluster. The job should start 10 copies of the job.

  4. Challenge

    Check How Many Jobs are Running in Which Datacenters

    When you check the number of running jobs, 7 should be in dc1 and 3 should be in dc2.

The Cloud Content team comprises subject matter experts hyper focused on services offered by the leading cloud vendors (AWS, GCP, and Azure), as well as cloud-related technologies such as Linux and DevOps. The team is thrilled to share their knowledge to help you build modern tech solutions from the ground up, secure and optimize your environments, and so much more!

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.

Start learning by doing today

View Plans