Installing Nomad on Three Servers

30 minutes
  • 4 Learning Objectives

About this Hands-on Lab

In this Lab, we will be configuring three provided nomad servers to be in a cluster. These servers are Centos 7 servers.

One server will be configured as the server agent. The other 2 nodes will be configured as clients.

At the end, we will have a small cluster that will be ready to accept and run jobs.

You will need to make changes to the configuration to ensure that a data center of `dc1` is being used.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Log into the provided servers.

You have been provided with 3 servers. You will need to log into them as the cloud_user with the provided password. To perform some of the commands, you will need to use the sudo command also.

On nomad-server0 configure Nomad to be in server mode. You should use the datacenter of dc1.

On the Server node, configure the Nomad instance to be in server mode. You will need to edit the configuration file and remove some of the default settings.

You will need to ensure that the datacenter of dc1 has been configured.

On nomad-client0 and nomad-client1 configure Nomad to be in client mode. You should use the datacenter of dc1.

On the client nodes, configure the Nomad instance to be in client mode.

You will need to edit the configuration file and remove some of the default settings.

You will need to ensure that the datacenter of dc1 has been configured.

You should set the client stanza’s server section to use the nomad-server0 internal IP address. The external IP address will not work.

Start or restart all Nomad instances.

If the 2 client nodes are not added automatically to the cluster, then you can manually add them using the relevant nomad node command.

Check the cluster is working using Nomad commands.

Using Several Nomad commands, check to see if the cluster is working.

You should see only one node in server members.

You should see two nodes with node status.

Additional Resources

Your manager has heard that Nomad can run in a cluster and wants to see an example in a test environment.

To that end, Nomad has been installed on the provided Centos 7 servers, but they are a standard install that comes with a yum install from the HashiCorp repository.

These will have the default config for Developer mode and will need to be configured for use in a cluster.

Also, since your environment uses a datacenter called dc1, you should ensure this has been configured as the data center for use in Nomad.

The server called nomad-server0 should be set up with the agent in server mode.

The servers called nomad-client0 and nomad-client1 should be set up with the agent in client mode.

Once they have had the relevant changes made to their config files, ensure that the Nomad service has been enabled and started on all servers.

Use the relevant commands on the 2 client nodes to add them to the nomad-server0 agent.

NOTE: You will need to use the internal ipaddress's supplied on the Hands-On Lab login page to make the connections.

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!