Nomad is a highly available, distributed, data-center aware cluster and application scheduler designed to support the modern datacenter with support for long-running services, batch jobs, and much more. It is developed by HashiCorp and is known for its simplicity and flexibility.
To install Nomad, follow these steps:
PATH
.$ unzip nomad_<VERSION>_linux_amd64.zip
$ sudo mv nomad /usr/local/bin/
$ nomad --version
To start a Nomad agent in development mode, use the following command:
$ nomad agent -dev
Create a job file, for example example.nomad
:
job "example" {
datacenters = ["dc1"]
group "example" {
task "server" {
driver = "docker"
config {
image = "nginx:latest"
port_map {
http = 80
}
}
resources {
cpu = 500
memory = 256
}
service {
name = "nginx"
port = "http"
}
}
}
}
Submit the job using the following command:
$ nomad job run example.nomad
For more detailed information, refer to the official Nomad documentation. For support, you can join the community on the Nomad Discuss Forum or the HashiCorp Community Slack.