Go to file
Luiz Aoqui 9affe31a0f
qemu: reduce monitor socket path (#13971)
The QEMU driver can take an optional `graceful_shutdown` configuration
which will create a Unix socket to send ACPI shutdown signal to the VM.

Unix sockets have a hard length limit and the driver implementation
assumed that QEMU versions 2.10.1 were able to handle longer paths. This
is not correct, the linked QEMU fix only changed the behaviour from
silently truncating longer socket paths to throwing an error.

By validating the socket path before starting the QEMU machine we can
provide users a more actionable and meaningful error message, and by
using a shorter socket file name we leave a bit more room for
user-defined values in the path, such as the task name.

The maximum length allowed is also platform-dependant, so validation
needs to be different for each OS.
2022-08-04 12:10:35 -04:00
.changelog qemu: reduce monitor socket path (#13971) 2022-08-04 12:10:35 -04:00
.circleci build: update to go1.18.5 2022-08-02 07:36:35 -05:00
.github build: update to go1.18.5 2022-08-02 07:36:35 -05:00
.release [CI-only] Use pattern matching for release_branches (#13857) 2022-08-02 09:38:33 -07:00
.semgrep Add semgrep rule to catch non-determinism in FSM (#13725) 2022-07-12 15:44:24 -07:00
.tours Make number of scheduler workers reloadable (#11593) 2022-01-06 11:56:13 -05:00
acl search: use secure vars ACL policy for secure vars context (#13788) 2022-07-21 08:39:36 -04:00
api template: set default UID/GID to -1 (#13998) 2022-08-04 11:26:08 -04:00
ci ci: fixup task runner chroot test 2022-04-19 10:37:46 -05:00
client Merge pull request #13978 from hashicorp/f-nsd-check-headers 2022-08-04 07:21:07 -05:00
command Add Nomad RetryConfig to agent template config (#13907) 2022-08-03 16:56:30 -04:00
contributing build: update to go1.18.5 2022-08-02 07:36:35 -05:00
demo demo/docs: update demo of Kadalu CSI Plugin (#13610) 2022-07-06 10:24:34 -04:00
dev
drivers qemu: reduce monitor socket path (#13971) 2022-08-04 12:10:35 -04:00
e2e e2e: move namespaces test out of legacy framework (#13934) 2022-08-01 13:24:34 -04:00
helper nsd: add support for specifying check.method in nomad service checks 2022-08-01 16:13:48 -05:00
integrations
internal/testing/apitests ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
jobspec template: set default UID/GID to -1 (#13998) 2022-08-04 11:26:08 -04:00
jobspec2 template: set default UID/GID to -1 (#13998) 2022-08-04 11:26:08 -04:00
lib cleanup: remove unneeded darwin lib 2022-07-22 10:33:45 -05:00
nomad allow unhealthy canaries without blocking autopromote (#14001) 2022-08-04 11:53:50 -04:00
plugins deps: remove deprecated net/context (#13932) 2022-07-28 14:46:56 -04:00
scheduler core: merge reserved_ports into host_networks (#13651) 2022-07-12 14:40:25 -07:00
scripts build: update to go1.18.5 2022-08-02 07:36:35 -05:00
terraform terraform: update installed versions of HashiCorp tools. (#13635) 2022-07-07 16:12:19 +02:00
testutil cli: correctly use and validate job with vault token set 2022-05-19 12:13:34 -05:00
tools build: update aws env cpu info 2022-08-02 07:59:58 -05:00
ui New variable creation adds the first namespace in your available list at variable creation time (#13991) 2022-08-03 15:09:25 -04:00
version Prepare for next release 2022-07-13 19:34:32 -04:00
website qemu: reduce monitor socket path (#13971) 2022-08-04 12:10:35 -04:00
.git-blame-ignore-revs ignore b0a20b4dc965a38b0c843f47c16685ccad7439da (#13648) 2022-07-07 15:16:18 -07:00
.gitattributes
.gitignore Allow Operator Generated bootstrap token (#12520) 2022-06-03 07:37:24 -04:00
.go-version build: update to go1.18.5 2022-08-02 07:36:35 -05: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 Merge release 1.3.2 files 2022-07-13 19:35:54 -04:00
CODEOWNERS add service acct to codeowners for backport merging 2022-05-06 10:06:20 -07:00
GNUmakefile cli: do not import structs, use API package only. (#13938) 2022-08-02 16:33:08 +02:00
LICENSE
README.md
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 qemu: reduce monitor socket path (#13971) 2022-08-04 12:10:35 -04:00
go.sum qemu: reduce monitor socket path (#13971) 2022-08-04 12:10:35 -04:00
main.go raw_exec: make raw exec driver work with cgroups v2 2022-04-04 16:11:38 -05:00
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.