Go to file
Tim Gross a135d9b260
CSI: fix data race in plugin manager (#12553)
The plugin manager for CSI hands out instances of a plugin for callers
that need to mount a volume. The `MounterForPlugin` method accesses
the internal instances map without a lock, and can be called
concurrently from outside the plugin manager's main run-loop.

The original commit for the instances map included a warning that it
needed to be accessed only from the main loop but that comment was
unfortunately ignored shortly thereafter, so this bug has existed in
the code for a couple years without being detected until we ran tests
with `-race` in #12098. Lesson learned here: comments make for lousy
enforcement of invariants!
2022-04-12 12:18:04 -04:00
.changelog CSI: fix data race in plugin manager (#12553) 2022-04-12 12:18:04 -04:00
.circleci ci: limit gotestsum to circle ci 2022-03-18 09:15:01 -05:00
.github ci: skip prerelease if triggered by the generate assets workflow (#12504) 2022-04-07 16:04:53 -04:00
.release ci: change notification channel to feed-nomad-releases (#12550) 2022-04-11 19:12:58 -04:00
.semgrep ci: add semgrep rule to catch usage of invalid string extensions (#12509) 2022-04-08 10:58:32 -04:00
.tours Make number of scheduler workers reloadable (#11593) 2022-01-06 11:56:13 -05:00
acl ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
api api: use `cleanhttp.DefaultPooledTransport` for default API client (#12492) 2022-04-06 16:14:53 -04:00
ci ci: explain why ci runs tests in serial now 2022-03-16 08:38:42 -05:00
client CSI: fix data race in plugin manager (#12553) 2022-04-12 12:18:04 -04:00
command feat: remove dependency to consul/lib 2022-04-09 13:22:44 +02:00
contributing ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
demo scripts: fix interpreter for bash (#12549) 2022-04-12 10:08:21 -04:00
dev docs: swap master for main in Nomad repo 2021-03-08 14:26:31 -05:00
drivers exec: fix exec handler test 2022-04-06 12:11:37 -05:00
e2e scripts: fix interpreter for bash (#12549) 2022-04-12 10:08:21 -04:00
helper feat: remove dependency to consul/lib 2022-04-09 13:22:44 +02:00
integrations spelling: registrations 2018-03-11 18:40:53 +00:00
internal/testing/apitests ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
jobspec Support Vault entity aliases (#12449) 2022-04-05 14:18:10 -04:00
jobspec2 ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
lib client: enable support for cgroups v2 2022-03-23 11:35:27 -05:00
nomad add some godocs for the API pagination tokenizer options (#12547) 2022-04-12 10:27:22 -04:00
plugins fix(plugins): should return when ctx.Done 2022-04-09 01:04:29 +08:00
scheduler allocs without max_client_disconnect should be lost on disconnect (#12529) 2022-04-11 11:24:49 -04:00
scripts scripts: fix interpreter for bash (#12549) 2022-04-12 10:08:21 -04:00
terraform scripts: fix interpreter for bash (#12549) 2022-04-12 10:08:21 -04:00
testutil ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
tools build: bump go version to 1.17.3 (#11461) 2021-11-05 15:34:24 -04:00
ui Importing string methods directly from @ember/string (#12499) 2022-04-07 15:51:41 -04:00
version remove generated files and prepare for next release 2022-04-07 18:51:18 -04:00
website scripts: fix interpreter for bash (#12549) 2022-04-12 10:08:21 -04:00
.gitattributes Remove invalid gitattributes 2018-02-14 14:47:43 -08:00
.gitignore ui: ignore cache for eslint, to speed up linting 2022-01-20 09:29:10 -05:00
.go-version [Main] Onboard to CRT (#12276) 2022-04-06 11:47:02 -04:00
.golangci.yml cleanup: purge github.com/pkg/errors 2022-04-01 19:24:02 -05:00
.semgrepignore build: disable semgrep on structs.go for now 2022-02-01 10:09:49 -06:00
CHANGELOG.md update ci.hcl, version.go and CHANGELOG to v1.3.0-beta.1 2022-04-07 16:13:49 -04:00
CODEOWNERS [Main] Onboard to CRT (#12276) 2022-04-06 11:47:02 -04:00
GNUmakefile ci: make version script match ENT to avoid unnecessary merge conflicts (#12482) 2022-04-06 12:56:52 -04:00
LICENSE Initial commit 2015-06-01 12:21:00 +02:00
README.md README: Align with Consul README (#9681) 2020-12-18 09:38:34 -08:00
Vagrantfile tools: update virtualbox networking configuration (#11561) 2021-11-24 10:45:58 -05:00
build_linux_arm.go gofmt all the files 2021-10-01 10:14:28 -04:00
go.mod client: add Nomad template service functionality to runner. (#12458) 2022-04-06 19:17:05 +02:00
go.sum client: add Nomad template service functionality to runner. (#12458) 2022-04-06 19:17:05 +02:00
main.go raw_exec: make raw exec driver work with cgroups v2 2022-04-04 16:11:38 -05:00
main_test.go Adding initial skeleton 2015-06-01 13:46:21 +02:00

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.