Go to file
Benjamin Buzbee 13cc30ebeb
Return buffered text from log endpoint if decoding fails (#15558)
To see why I think this is a good change lets look at why I am making it

My disk was full, which means GC was happening agressively. So by the
time I called the logging endpoint from the SDK, the logs were GC'd

The error I was getting before was:
```
invalid character 'i' in literal false (expecting 'l')
```

Now the error I get is:
```
failed to decode log endpoint response as JSON: "failed to list entries: open /tmp/nomad.data.4219353875/alloc/f11fee50-2b66-a7a2-d3ec-8442cb3d557a/alloc/logs: no such file or directory"
```

Still not super descriptive but much more debugable
2023-01-16 10:39:56 +01:00
.changelog Return buffered text from log endpoint if decoding fails (#15558) 2023-01-16 10:39:56 +01:00
.circleci build: update to go 1.19.5 (#15769) 2023-01-13 09:57:32 -06:00
.github
.release
.semgrep
.tours
acl
api Return buffered text from log endpoint if decoding fails (#15558) 2023-01-16 10:39:56 +01:00
ci
client env/aws: update ec2 cpu info data (#15770) 2023-01-13 09:58:23 -06:00
command
contributing build: update to go 1.19.5 (#15769) 2023-01-13 09:57:32 -06:00
demo
dev
drivers
e2e
helper
integrations
internal/testing/apitests
jobspec
jobspec2 consul/connect: use block not optional for opaque map (#15765) 2023-01-12 10:39:10 -06:00
lib
nomad
plugins
scheduler
scripts build: update to go 1.19.5 (#15769) 2023-01-13 09:57:32 -06:00
terraform
testutil
tools
ui [ui] Fixes logger height issue when sidebar has events (#15759) 2023-01-13 12:16:02 -05:00
version
website Fixing yaml syntax in frontmatter (#15781) 2023-01-13 14:06:46 -05:00
.git-blame-ignore-revs
.gitattributes
.gitignore
.go-version build: update to go 1.19.5 (#15769) 2023-01-13 09:57:32 -06:00
.golangci.yml
.semgrepignore
CHANGELOG.md
CODEOWNERS
GNUmakefile
LICENSE
README.md
Vagrantfile
build_linux_arm.go
go.mod build(deps): bump github.com/containerd/containerd from 1.6.6 to 1.6.12 (#15726) 2023-01-13 09:22:41 -06:00
go.sum build(deps): bump github.com/containerd/containerd from 1.6.6 to 1.6.12 (#15726) 2023-01-13 09:22:41 -06:00
main.go
main_test.go

README.md

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.