nomad

command module
v1.6.112 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2023 License: MPL-2.0 Imports: 14 Imported by: 0

README

Nomad Discuss

Nomad hernad's fork

build on nix

nix-shell -p go -p zip -p tree
make release

Nomad is a simple and flexible workload orchestrator to deploy and manage containers (docker, podman), non-containerized applications (executable, Java), and virtual machines (qemu) across on-prem and clouds at scale.

Nomad provides several key features:

  • Deploy Containers and Legacy Applications: Nomad’s flexibility as an orchestrator enables an organization to run containers, legacy, and batch applications together on the same infrastructure. Nomad brings core orchestration benefits to legacy applications without needing to containerize via pluggable task drivers.

  • Simple & Reliable: Nomad runs as a single binary and is entirely self contained - combining resource management and scheduling into a single system. Nomad does not require any external services for storage or coordination. Nomad automatically handles application, node, and driver failures. Nomad is distributed and resilient, using leader election and state replication to provide high availability in the event of failures.

  • Device Plugins & GPU Support: Nomad offers built-in support for GPU workloads such as machine learning (ML) and artificial intelligence (AI). Nomad uses device plugins to automatically detect and utilize resources from hardware devices such as GPU, FPGAs, and TPUs.

  • Federation for Multi-Region, Multi-Cloud: Nomad was designed to support infrastructure at a global scale. Nomad supports federation out-of-the-box and can deploy applications across multiple regions and clouds.

  • Proven Scalability: Nomad is optimistically concurrent, which increases throughput and reduces latency for workloads. Nomad has been proven to scale to clusters of 10K+ nodes in real-world production environments.

  • HashiCorp Ecosystem: Nomad integrates seamlessly with Terraform, Consul, Vault for provisioning, service discovery, and secrets management.

Quick Start

Testing

See Learn: Getting Started for instructions on setting up a local Nomad cluster for non-production use.

Optionally, find Terraform manifests for bringing up a development Nomad cluster on a public cloud in the terraform directory.

Production

See Learn: Nomad Reference Architecture for recommended practices and a reference architecture for production deployments.

Documentation

Full, comprehensive documentation is available on the Nomad website: https://www.nomadproject.io/docs

Guides are available on HashiCorp Learn.

Roadmap

A timeline of major features expected for the next release or two can be found in the Public Roadmap.

This roadmap is a best guess at any given point, and both release dates and projects in each release are subject to change. Do not take any of these items as commitments, especially ones later than one major release away.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api module
allocrunner/tasklifecycle
Package tasklifecycle manages the execution order of tasks based on their lifecycle configuration.
Package tasklifecycle manages the execution order of tasks based on their lifecycle configuration.
allocwatcher
Package allocwatcher allows blocking until another allocation - whether running locally or remotely - completes and migrates the allocation directory if necessary.
Package allocwatcher allows blocking until another allocation - whether running locally or remotely - completes and migrates the allocation directory if necessary.
devicemanager
Package devicemanager is used to manage device plugins
Package devicemanager is used to manage device plugins
dynamicplugins
dynamicplugins is a package that manages dynamic plugins in Nomad.
dynamicplugins is a package that manages dynamic plugins in Nomad.
lib/fifo
Package fifo implements functions to create and open a fifo for inter-process communication in an OS agnostic way.
Package fifo implements functions to create and open a fifo for inter-process communication in an OS agnostic way.
pluginmanager/csimanager
* csimanager manages locally running CSI Plugins on a Nomad host, and provides a few different interfaces.
* csimanager manages locally running CSI Plugins on a Nomad host, and provides a few different interfaces.
servers
Package servers provides an interface for choosing Servers to communicate with from a Nomad Client perspective.
Package servers provides an interface for choosing Servers to communicate with from a Nomad Client perspective.
serviceregistration/nsd
Package nsd provides Nomad service registration and therefore discovery capabilities for Nomad clients.
Package nsd provides Nomad service registration and therefore discovery capabilities for Nomad clients.
ui
demo
drivers
docker/cmd
This package provides a mechanism to build the Docker driver plugin as an external binary.
This package provides a mechanism to build the Docker driver plugin as an external binary.
nix
shared/capabilities
Package capabilities is used for managing sets of linux capabilities.
Package capabilities is used for managing sets of linux capabilities.
e2e
acl
Package acl provides end-to-end tests for Nomads ACL system.
Package acl provides end-to-end tests for Nomads ACL system.
alloc_logs
Package alloc_logs provides end-to-end tests for Nomads allocation logging functionality.
Package alloc_logs provides end-to-end tests for Nomads allocation logging functionality.
csi
example
Package example contains basic examples of writing e2e tests for Nomad.
Package example contains basic examples of writing e2e tests for Nomad.
framework
Deprecated: no longer use e2e/framework for new tests; see TestExample for new e2e test structure.
Deprecated: no longer use e2e/framework for new tests; see TestExample for new e2e test structure.
isolation
Package isolation provides tests around various kinds of isolation, such as artifact downloading, PID namespacing, and chroot task environments.
Package isolation provides tests around various kinds of isolation, such as artifact downloading, PID namespacing, and chroot task environments.
jobsubmissions
Package jobsubmissions contains e2e tests related to the /v1/job/<id>/submission HTTP API endpoint and related components.
Package jobsubmissions contains e2e tests related to the /v1/job/<id>/submission HTTP API endpoint and related components.
operator_scheduler
Package operator_scheduler provides end-to-end tests for the Nomad operator scheduler functionality and configuration options.
Package operator_scheduler provides end-to-end tests for the Nomad operator scheduler functionality and configuration options.
podman
Package podman contains test cases related to the nomad-driver-podman task driver.
Package podman contains test cases related to the nomad-driver-podman task driver.
servicediscovery
Package servicediscovery provides end-to-end tests for Nomads service discovery feature.
Package servicediscovery provides end-to-end tests for Nomads service discovery feature.
spread
Package spread provides end-to-end tests for Nomads spread job specification attribute.
Package spread provides end-to-end tests for Nomads spread job specification attribute.
These functions are coming from consul/lib/eof.go
These functions are coming from consul/lib/eof.go
boltdd
Package boltdd contains a wrapper around BBoltDB to deduplicate writes and encode values using mgspack.
Package boltdd contains a wrapper around BBoltDB to deduplicate writes and encode values using mgspack.
constraints/semver
semver is a Semver Constraints package copied from github.com/hashicorp/go-version @ 2046c9d0f0b03c779670f5186a2a4b2c85493a71
semver is a Semver Constraints package copied from github.com/hashicorp/go-version @ 2046c9d0f0b03c779670f5186a2a4b2c85493a71
envoy
Package envoy provides a high level view of the variables that go into selecting an envoy version.
Package envoy provides a high level view of the variables that go into selecting an envoy version.
noxssrw
Package noxssrw (No XSS ResponseWriter) behaves like the Go standard library's ResponseWriter by detecting the Content-Type of a response if it has not been explicitly set.
Package noxssrw (No XSS ResponseWriter) behaves like the Go standard library's ResponseWriter by detecting the Content-Type of a response if it has not been explicitly set.
pluginutils/catalog
Package catalog is used to register internal plugins such that they can be loaded.
Package catalog is used to register internal plugins such that they can be loaded.
pointer
Package pointer provides helper functions related to Go pointers.
Package pointer provides helper functions related to Go pointers.
raftutil
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
snapshot
The archive utilities manage the internal format of a snapshot, which is a tar file with the following contents:
The archive utilities manage the internal format of a snapshot, which is a tar file with the following contents:
subproc
Package subproc provides helper utilities for executing the Nomad binary as a child process of the Nomad agent.
Package subproc provides helper utilities for executing the Nomad binary as a child process of the Nomad agent.
testlog
Package testlog creates a *log.Logger backed by *testing.T to ease logging in tests.
Package testlog creates a *log.Logger backed by *testing.T to ease logging in tests.
testtask
Package testtask implements a portable set of commands useful as stand-ins for user tasks.
Package testtask implements a portable set of commands useful as stand-ins for user tasks.
addrs
Package addrs contains types that represent "addresses", which are references to specific objects within a Packer configuration.
Package addrs contains types that represent "addresses", which are references to specific objects within a Packer configuration.
lib
lang
Package lang provides some features that really 'ought to be part of the Go language
Package lang provides some features that really 'ought to be part of the Go language
deploymentwatcher
deploymentwatcher creates and tracks Deployments, which hold meta data describing the process of upgrading a running job to a new set of Allocations.
deploymentwatcher creates and tracks Deployments, which hold meta data describing the process of upgrading a running job to a new set of Allocations.
csi
csi/fake
fake is a package that includes fake implementations of public interfaces from the CSI package for testing.
fake is a package that includes fake implementations of public interfaces from the CSI package for testing.
tools module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL