Go to file
Ben Buzbee e247f8806b Don't treat a failed recover + successful destroy as a successful
recover

This code just seems incorrect. As it stands today it reports a
successful restore if RecoverTask fails and then DestroyTask succeeds.

This can result in a really annoying bug where it then calls RecoverTask
again, whereby it will probably get ErrTaskNotFound and call DestroyTask
once more.

I think the only reason this has not been noticed so far is because most
drivers like Docker will return Success, then nomad will call
RecoverTask, get an error (not found) and call DestroyTask again, and
get a ErrTasksNotFound err.
2021-07-03 01:46:36 +00:00
.changelog CSI: Snapshot volume create should use vol.Secrets (#10840) 2021-07-02 08:28:22 -04:00
.circleci golang: update to 1.16.5 (#10733) 2021-06-09 11:51:41 -04:00
.github website: support hidden pages in nav-data (#10510) 2021-05-06 13:20:03 -04:00
acl
api consul/connect: fix tests for mesh gateway mode 2021-06-04 09:31:38 -05:00
client Don't treat a failed recover + successful destroy as a successful 2021-07-03 01:46:36 +00:00
command cli: fixed system commands so they correctly use passed flags. 2021-06-28 10:57:50 +02:00
contributing golang: update to 1.16.5 (#10733) 2021-06-09 11:51:41 -04:00
demo demo: apply hclfmt to ceph files 2021-05-03 09:27:26 -06:00
dev
devices/gpu/nvidia
drivers docker: move host path for hosts file mount to alloc dir (#10823) 2021-06-30 11:10:04 -04:00
e2e e2e: use -detach mode when registering jobs with cli 2021-06-18 12:18:40 -05:00
helper pool: track usage of incoming streams (#10710) 2021-06-07 10:22:37 -04:00
integrations
internal/testing/apitests
jobspec Support disabling TCP checks for connect sidecar services 2021-05-07 12:10:26 -04:00
jobspec2 jobspec2: remove duplicate imports statements. 2021-06-11 09:38:47 +02:00
lib lib/cpuset: add String and ContainsAny helpers 2021-04-13 13:28:36 -04:00
nomad CSI: Snapshot volume create should use vol.Secrets (#10840) 2021-07-02 08:28:22 -04:00
plugins docker: generate /etc/hosts file for bridge network mode (#10766) 2021-06-16 14:55:22 -04:00
scheduler quotas: evaluate quota feasibility last in scheduler (#10753) 2021-06-14 10:11:40 -04:00
scripts build(deps): bump ws from 7.3.1 to 7.4.6 in /scripts/screenshots/src (#10671) 2021-06-16 11:09:34 -04:00
terraform
testutil Add remaining pprof profiles to nomad operator debug (#10748) 2021-06-21 14:22:49 -04:00
tools
ui Fixed global-search keyboard shortcut for non-english keyboard layouts. 2021-06-07 13:32:38 -04:00
vendor update-gopsutil (#10790) 2021-06-21 10:19:39 -04:00
version prepare for 1.1.3 development 2021-06-22 10:41:44 -04:00
website docker: move host path for hosts file mount to alloc dir (#10823) 2021-06-30 11:10:04 -04:00
.gitattributes
.gitignore ignore local e2e files 2021-04-27 15:07:03 -07:00
.golangci.yml
CHANGELOG.md Merge pull request #10829 from hashicorp/gh-10820-docs 2021-06-30 08:37:02 +02:00
GNUmakefile
LICENSE
README.md
Vagrantfile
build_linux_arm.go
go.mod update-gopsutil (#10790) 2021-06-21 10:19:39 -04:00
go.sum update-gopsutil (#10790) 2021-06-21 10:19:39 -04:00
main.go
main_test.go

README.md

Nomad Build Status 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.