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 thesudo
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.