Find a file
Luiz Aoqui 7a8cacc9ec
allocrunner: refactor task coordinator (#14009)
The current implementation for the task coordinator unblocks tasks by
performing destructive operations over its internal state (like closing
channels and deleting maps from keys).

This presents a problem in situations where we would like to revert the
state of a task, such as when restarting an allocation with tasks that
have already exited.

With this new implementation the task coordinator behaves more like a
finite state machine where task may be blocked/unblocked multiple times
by performing a state transition.

This initial part of the work only refactors the task coordinator and
is functionally equivalent to the previous implementation. Future work
will build upon this to provide bug fixes and enhancements.
2022-08-22 18:38:49 -04:00
.changelog allow ACL policies to be associated with workload identity (#14140) 2022-08-22 16:41:21 -04:00
.circleci build: print installed go version in cricle on windows 2022-08-18 11:25:05 -05:00
.github
.release
.semgrep
.tours
acl
api allow ACL policies to be associated with workload identity (#14140) 2022-08-22 16:41:21 -04:00
ci
client allocrunner: refactor task coordinator (#14009) 2022-08-22 18:38:49 -04:00
command allocrunner: refactor task coordinator (#14009) 2022-08-22 18:38:49 -04:00
contributing
demo
dev
drivers cleanup: replace TypeToPtr helper methods with pointer.Of (#14151) 2022-08-17 18:26:34 +02:00
e2e e2e: add e2e tests for nomad service disco checks 2022-08-22 15:31:13 -05:00
helper client: fix data races in config handling (#14139) 2022-08-18 16:32:04 -07:00
integrations
internal/testing/apitests cleanup: replace TypeToPtr helper methods with pointer.Of (#14151) 2022-08-17 18:26:34 +02:00
jobspec template: use pointer values for gid and uid (#14203) 2022-08-22 16:25:49 -04:00
jobspec2 template: use pointer values for gid and uid (#14203) 2022-08-22 16:25:49 -04:00
lib
nomad allocrunner: refactor task coordinator (#14009) 2022-08-22 18:38:49 -04:00
plugins cleanup: replace TypeToPtr helper methods with pointer.Of (#14151) 2022-08-17 18:26:34 +02:00
scheduler cleanup: replace TypeToPtr helper methods with pointer.Of (#14151) 2022-08-17 18:26:34 +02:00
scripts
terraform
testutil
tools
ui Remove a test pause and a lint error from #14199 (#14222) 2022-08-22 16:51:49 -04:00
version client: fix data races in config handling (#14139) 2022-08-18 16:32:04 -07:00
website allow ACL policies to be associated with workload identity (#14140) 2022-08-22 16:41:21 -04:00
.git-blame-ignore-revs
.gitattributes
.gitignore
.go-version Add .0 to make goenv happy (#14218) 2022-08-22 16:36:02 -04:00
.golangci.yml
.semgrepignore
build_linux_arm.go
CHANGELOG.md
CODEOWNERS
GNUmakefile cleanup: replace TypeToPtr helper methods with pointer.Of (#14151) 2022-08-17 18:26:34 +02:00
go.mod cleanup: first pass at fixing command package warnings 2022-08-17 15:33:37 -05:00
go.sum cleanup: first pass at fixing command package warnings 2022-08-17 15:33:37 -05:00
LICENSE
main.go
main_test.go
README.md readme: remove Gitter lobby link. (#14195) 2022-08-22 10:33:20 +02:00
Vagrantfile

Nomad License: MPL 2.0 Discuss

HashiCorp Nomad logo

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 is supported on Linux, Windows, and macOS. A commercial version of Nomad, Nomad Enterprise, is also available.

Nomad provides several key features:

  • Deploy Containers and Legacy Applications: Nomads 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.

Contributing

See the contributing directory for more developer documentation.