open-nomad/website/source/index.html.erb

440 lines
18 KiB
Plaintext
Raw Normal View History

2017-07-21 02:31:57 +00:00
---
description: |-
Nomad is a highly available, distributed, data-center aware cluster and
application scheduler designed to support the modern datacenter with support
for long-running services, batch jobs, and much more.
---
<header>
<div class="container hero">
<div class="row">
<div class="col-md-offset-2 col-md-8">
2019-10-22 20:36:48 +00:00
<div class="alert">
2019-10-03 20:07:53 +00:00
<a href="https://www.hashicorp.com/blog/hashicorp-nomad-0-10-general-availability" class="g-alert nomad-green "><span class="g-type-tag-label">NEW</span><p class="g-type-body-small">Announcing the general availability of Nomad 0.10. Read more<svg width="15" height="9" viewBox="0 0 15 9" fill="none" xmlns="http://www.w3.org/2000/svg"><line x1="0.5" y1="4.5" x2="13.5" y2="4.5" stroke="#000" stroke-linecap="round"></line><path d="M10.3536 0.646447C10.1583 0.451184 9.84171 0.451184 9.64645 0.646447C9.45118 0.841709 9.45118 1.15829 9.64645 1.35355L10.3536 0.646447ZM13.5 4.5L13.8536 4.85355L14.2071 4.5L13.8536 4.14645L13.5 4.5ZM9.64645 7.64645C9.45118 7.84171 9.45118 8.15829 9.64645 8.35355C9.84171 8.54882 10.1583 8.54882 10.3536 8.35355L9.64645 7.64645ZM9.64645 1.35355L13.1464 4.85355L13.8536 4.14645L10.3536 0.646447L9.64645 1.35355ZM13.1464 4.14645L9.64645 7.64645L10.3536 8.35355L13.8536 4.85355L13.1464 4.14645Z" fill="#000"></path></svg></p></a>
2019-10-22 20:36:48 +00:00
</div>
2017-07-21 02:31:57 +00:00
<%= inline_svg "logo-hashicorp.svg", height: 120, class: "logo" %>
2019-10-03 20:07:53 +00:00
<h1 class="g-type-display-3">Deploy and Manage Any Containerized, Legacy, or Batch Application</h1>
2017-07-21 02:31:57 +00:00
<a class="button primary" href="/intro/index.html">Get Started</a>
<a class="button" href="/downloads.html">Download <%= latest_version %></a>
</div>
</div>
</div>
</header>
<section id="features" class="marketing green">
2017-03-28 03:37:59 +00:00
<div class="container">
<div class="row">
2017-07-21 02:31:57 +00:00
<div class="col-sm-12">
2019-10-03 20:07:53 +00:00
<h2 class="g-type-display-2">Simple and Lightweight</h2>
<p class="g-type-body-large lead">
Nomad is an easy-to-use, flexible, and performant workload orchestrator that can
deploy a mix of microservice, batch, containerized, and non-containerized applications.
Nomad is easy to operate and scale and has native Consul and Vault integrations.
2017-07-21 02:31:57 +00:00
</p>
</div>
</div>
<div class="row">
<div class="col-sm-6">
2019-10-03 20:07:53 +00:00
<h3 class="g-type-display-4">1. Declare Jobs</h3>
<p class="g-type-body">
2017-07-21 02:31:57 +00:00
Users compose and submit high-level job files. Nomad handles the
2017-07-24 19:11:17 +00:00
scheduling and upgrading of the applications over time.
2017-07-21 02:31:57 +00:00
</p>
2019-10-03 20:07:53 +00:00
<p class="g-type-body">
2017-09-27 18:14:37 +00:00
This flexibility makes it easy to deploy one container, dozens of
2017-07-21 02:31:57 +00:00
containers, or even <a
href="https://www.hashicorp.com/c1m/">millions</a>.
</p>
</div>
<div class="col-sm-6">
2019-10-03 20:07:53 +00:00
<h3 class="g-type-display-4">2. Plan Changes</h3>
<p class="g-type-body">
2017-07-24 19:11:17 +00:00
With built-in dry-run execution, Nomad shows what scheduling decisions
it will take before it takes them. Operators can approve or deny these
changes to create a safe and reproducible workflow.
2017-07-21 02:31:57 +00:00
</p>
</div>
</div>
<div class="row">
<div class="col-sm-6">
2019-10-03 20:07:53 +00:00
<h3 class="g-type-display-4">3. Run Applications</h3>
<p class="g-type-body">
2017-07-21 02:31:57 +00:00
Nomad runs applications and ensures they keep running in failure
scenarios. In addition to long-running services, Nomad can schedule
2017-07-24 19:11:17 +00:00
batch jobs, distributed cron jobs, and parameterized jobs.
2017-07-21 02:31:57 +00:00
</p>
</div>
<div class="col-sm-6">
2019-10-03 20:07:53 +00:00
<h3 class="g-type-display-4">4. Monitor Progress</h3>
<p class="g-type-body">
2017-07-24 18:40:32 +00:00
Stream logs, send signals, and interact with the file system of
2017-07-21 02:31:57 +00:00
scheduled applications. These operator-friendly commands bring the
familiar debugging tools to a scheduled world.
</p>
2017-03-28 03:37:59 +00:00
</div>
</div>
</div>
2017-07-21 02:31:57 +00:00
</section>
2015-09-12 00:01:02 +00:00
2017-07-21 02:31:57 +00:00
<section id="hybrid-multi-cloud" class="marketing">
2017-03-28 03:37:59 +00:00
<div class="container">
<div class="row">
2017-07-21 02:31:57 +00:00
<div class="col-sm-12">
2019-10-03 20:07:53 +00:00
<span class="callout g-type-label">Combine</span>
<h2 class="g-type-display-2">Hybrid &amp; Multi Cloud</h2>
<p class="g-type-body-large lead">
2017-07-24 19:11:17 +00:00
As more organizations adopt cloud technologies, the desire to run in
multiple datacenters and multiple regions becomes critical. Nomad can
span public and private clouds and treat all your infrastructure as a
pool of resources.
2017-07-21 02:31:57 +00:00
</p>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<%= inline_svg "feature-public-private-clouds.svg" %>
</div>
</div>
<div class="row">
<div class="col-sm-6">
2019-10-03 20:07:53 +00:00
<h3 class="g-type-display-4">Hybrid Cloud</h3>
<p class="g-type-body">
2017-07-24 19:11:17 +00:00
Nomad bridges the gap between the public and private cloud, creating a
unified interface for developers to run any application on any
infrastructure. Easily run services across your internal private cloud
and external public cloud transparently to application developers.
2017-07-21 02:31:57 +00:00
</p>
</div>
<div class="col-sm-6">
2019-10-03 20:07:53 +00:00
<h3 class="g-type-display-4">Multi Cloud</h3>
<p class="g-type-body">
2017-07-24 19:11:17 +00:00
As more organizations adopt cloud technologies, the desire to run
2017-07-21 02:31:57 +00:00
applications simultaneously across multiple clouds increases. Nomad
combines the power of all cloud providers into a single, unified
interface for deploying applications and running services.
</p>
2017-03-28 03:37:59 +00:00
</div>
</div>
</div>
2017-07-21 02:31:57 +00:00
</section>
2015-09-12 00:01:02 +00:00
2017-07-21 02:31:57 +00:00
<section id="simplify" class="marketing green">
2017-03-28 03:37:59 +00:00
<div class="container">
<div class="row">
2017-07-21 02:31:57 +00:00
<div class="col-sm-12">
2019-10-03 20:07:53 +00:00
<span class="callout g-type-label">Maintain</span>
<h2 class="g-type-display-2">Simplify Operations</h2>
<p class="g-type-body-large lead">
2017-07-24 18:41:14 +00:00
Nomad simplifies operations by supporting several deployment
strategies to safely upgrade jobs, automatically handling machine
failures, and providing a single workflow to deploy applications.
2017-07-21 02:31:57 +00:00
</p>
</div>
</div>
2015-09-12 00:01:02 +00:00
2017-07-21 02:31:57 +00:00
<div class="row">
<div class="col-sm-offset-5 col-sm-6">
2019-10-03 20:07:53 +00:00
<h3 class="g-type-display-4">Rolling Deploys</h3>
2017-07-21 02:31:57 +00:00
</div>
</div>
<div class="row">
<div class="col-sm-5" id="feature-rolling-deploys">
<%= inline_svg "feature-rolling-deploys.svg" %>
</div>
<div class="col-sm-7">
2019-10-03 20:07:53 +00:00
<p class="g-type-body">
2017-07-21 23:00:23 +00:00
In order to update an application while reducing downtime, Nomad
provides a built-in mechanism for rolling upgrades. Operators specify
2017-07-24 18:41:39 +00:00
the rate at which they would like to upgrade their service in the
declarative job file, plan the changes, and submit the new job. Nomad
then updates the service to the newest version using task health and
Consul health check information to ensure replacement allocations are
healthy. With full control over the update strategy, rolling upgrades
make application deployments simple and safe.
2017-07-21 23:00:23 +00:00
</p>
</div>
</div>
2017-07-21 23:00:23 +00:00
<div class="row">
<div class="col-sm-12">
2019-10-03 20:07:53 +00:00
<h3 class="g-type-display-4">Blue/Green Deployments</h3>
</div>
</div>
<div class="row">
<div class="col-sm-7">
2019-10-03 20:07:53 +00:00
<p class="g-type-body">
2017-07-24 18:45:12 +00:00
Nomad supports native blue/green and canary deployments through the
declarative job file syntax. Instead of doing a rolling upgrade of the
existing allocations, the new version of the group is deployed along
side the existing set. While this duplicates the resources required
during the upgrade process, it allows very safe deployments as the
2017-07-24 19:14:02 +00:00
original version of the group is untouched till the operator promotes
the new version.
2017-07-21 02:31:57 +00:00
</p>
</div>
<div class="col-sm-5">
<%= inline_svg "feature-blue-green.svg" %>
</div>
</div>
2015-09-12 00:01:02 +00:00
<div class="row">
<div class="col-sm-offset-5 col-sm-6">
2019-10-03 20:07:53 +00:00
<h3 class="g-type-display-4">Automatic Machine Failures</h3>
</div>
</div>
<div class="row">
<div class="col-sm-5">
<%= inline_svg "feature-machine-failure.svg" %>
</div>
<div class="col-sm-7">
2019-10-03 20:07:53 +00:00
<p class="g-type-body">
2017-07-21 02:31:57 +00:00
Because it knows the state of all nodes and applications, if a
node becomes unhealthy, Nomad will automatically reschedule the
applications that were previously running on the unhealthy host
onto a new, healthy host if capacity exists. As new clients are
added to the cluster, they can share the responsibility of
running applications and services.
</p>
</div>
</div>
</div>
</section>
2015-09-12 00:01:02 +00:00
2017-07-21 02:31:57 +00:00
<section id="flexible-workloads" class="marketing">
<div class="container">
<div class="row">
<div class="col-sm-12">
2019-10-03 20:07:53 +00:00
<span class="callout g-type-label">Support</span>
<h2 class="g-type-display-2">Flexible Workloads</h2>
<p class="g-type-body-large lead">
2017-07-21 02:31:57 +00:00
In addition to supporting Linux, Windows, and Mac, Nomad has
extensible support for containerized, virtualized, and standalone
applications. Easily start Docker containers, VMs, or application
runtimes like Java.
</p>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<%= inline_svg "feature-flexible-workloads.svg" %>
</div>
</div>
<div class="row">
<div class="col-sm-6">
2019-10-03 20:07:53 +00:00
<h3 class="g-type-display-4">Diverse Technologies</h3>
<p class="g-type-body">
2017-07-24 18:42:02 +00:00
By supporting a wide range of technologies such as Docker, rkt, and
2017-07-21 02:31:57 +00:00
LXC, Nomad does not force you into a single technology. Easily use
multiple container or virtualization runtimes simultaneously.
2017-07-24 18:45:12 +00:00
Applications with their own runtime such as Java or Go can be
2017-07-21 02:31:57 +00:00
scheduled directly without the overhead of a container.
</p>
</div>
<div class="col-sm-6">
2019-10-03 20:07:53 +00:00
<h3 class="g-type-display-4">Multi OS</h3>
<p class="g-type-body">
2017-07-21 02:31:57 +00:00
The Nomad client runs on Linux, Windows, and Mac OS. This diverse
operating system support enables using the same application scheduler
for all your scheduling and runtime needs.
</p>
</div>
</div>
</div>
</section>
<section id="binpacking" class="marketing black">
<div class="container">
<div class="row">
<div class="col-sm-12">
2019-10-03 20:07:53 +00:00
<span class="callout g-type-label">Maximize</span>
<h2 class="g-type-display-2">Increase Utilization &amp; Reduce Costs</h2>
<p class="g-type-body-large lead">
2017-07-21 02:31:57 +00:00
Nomad uses bin packing to optimize application placement onto servers
to maximize resource utilization, increase density, and help reduce
costs.
</p>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<%= inline_svg "feature-binpacking.svg" %>
</div>
</div>
<div class="row">
<div class="col-sm-6">
2019-10-03 20:07:53 +00:00
<h3 class="g-type-display-4">Increase Density</h3>
<p class="g-type-body">
2017-07-21 02:31:57 +00:00
Nomad places applications and services based on a bin packing
algorithm, which is used to optimize the resource utilization and
2017-07-24 18:46:01 +00:00
density of applications. Nomad automatically augments the bin-packing
algorithm with anti-affinity rules to avoid colocating instances of
the same service to reduce the probability of correlated failures.
2017-07-21 02:31:57 +00:00
</p>
</div>
<div class="col-sm-6">
2019-10-03 20:07:53 +00:00
<h3 class="g-type-display-4">Reduce Costs</h3>
<p class="g-type-body">
2017-07-21 02:31:57 +00:00
By maximizing resource utilization, Nomad can help remove unused or
under-utilized machines in the cluster, reducing overall costs.
Additionally, Nomad enables organizations to utilize larger, more
cost-effective compute devices which can be less expensive at scale.
</p>
</div>
</div>
</div>
</section>
<section id="examples" class="marketing gray">
<div class="container">
<div class="row">
<div class="col-sm-12">
2019-10-03 20:07:53 +00:00
<h2 class="g-type-display-2">Examples</h2>
<h3 class="g-type-display-4">Create and Submit Jobs</h3>
<p class="g-type-body">
2017-07-21 02:31:57 +00:00
Easily create, validate, submit, and check the status of jobs using
the Nomad CLI.
</p>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="terminal">
<span class="circle"><%= inline_svg "terminal-circle.svg" %></span>
<span class="circle"><%= inline_svg "terminal-circle.svg" %></span>
<span class="circle"><%= inline_svg "terminal-circle.svg" %></span>
2017-07-21 02:31:57 +00:00
<div class="terminal-content">
<span>
<span class="text-green">admin@hashicorp.com:</span>
<span>nomad init</span>
</span>
<span>Example job file written to example.nomad</span>
<span>&nbsp;</span>
<span>
<span class="text-green">admin@hashicorp.com:</span>
2018-03-22 20:39:18 +00:00
<span>nomad job validate example.nomad</span>
2017-07-21 02:31:57 +00:00
</span>
<span>Job validation successful</span>
<span>&nbsp;</span>
<span>
<span class="text-green">admin@hashicorp.com:</span>
2018-03-22 20:39:18 +00:00
<span>nomad job run example.nomad</span>
2017-07-21 02:31:57 +00:00
</span>
<span>==> Monitoring evaluation "feb23392"</span>
<span class="pre"> Evaluation triggered by job "example"</span>
<span class="pre"> Evaluation within deployment: "7ffa7ed1"</span>
<span class="pre"> Allocation "a2f24fcf" created: node "3714a84a", group "cache"</span>
<span class="pre"> Evaluation status changed: "pending" -> "complete"</span>
<span>==> Evaluation "feb23392" finished with status "complete"</span>
<span>&nbsp;</span>
<span>
<span class="text-green">admin@hashicorp.com:</span>
<span>nomad status</span>
</span>
<span class="pre">ID Type Priority Status Submit Date</span>
<span class="pre">example service 50 running <%= Time.now.strftime("%m/%d/%y %H:%M:%S %Z") %></span>
2017-03-28 03:37:59 +00:00
</div>
</div>
2017-07-21 02:31:57 +00:00
</div>
</div>
2015-09-12 00:01:02 +00:00
2017-07-21 02:31:57 +00:00
<div class="row">
<div class="col-sm-12">
2019-10-03 20:07:53 +00:00
<h3 class="g-type-display-4">Plan Changes</h3>
<p class="g-type-body">
2017-07-24 19:11:17 +00:00
Perform a dry-run to check application placement, scheduling
2017-07-21 02:31:57 +00:00
decisions, and visualize failures before they happen.
</p>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="terminal">
<span class="circle"><%= inline_svg "terminal-circle.svg" %></span>
<span class="circle"><%= inline_svg "terminal-circle.svg" %></span>
<span class="circle"><%= inline_svg "terminal-circle.svg" %></span>
2017-07-21 02:31:57 +00:00
<div class="terminal-content">
<span>
<span class="text-green">admin@hashicorp.com:</span>
2018-03-22 20:39:18 +00:00
<span>nomad job plan example.nomad</span>
2017-07-21 02:31:57 +00:00
</span>
2017-07-21 22:11:08 +00:00
<span class="pre"><span class="text-orange">+/-</span> <span class="text-bold">Job: "example"</span></span>
<span class="pre"><span class="text-bold text-orange">+/-</span> <span class="text-bold">Task Group: "cache"</span> (<span class="text-green">2 create</span>, <span class="text-blue">1 in-place update</span>)</span>
<span class="pre"> <span class="text-orange">+/-</span> Count: "1" => "3" (<span class="text-green">forces create</span>)</span>
<span class="pre"> <span class="text-bold">Task: "redis"</span></span>
2017-07-21 02:31:57 +00:00
<span>&nbsp;</span>
2017-07-21 22:11:08 +00:00
<span class="pre"><span class="text-bold">Scheduler dry-run:</span></span>
<span class="pre"><span class="text-bold text-green">- All tasks successfully allocated.</span></span>
2017-07-21 02:31:57 +00:00
<span>&nbsp;</span>
2017-07-21 22:11:08 +00:00
<span class="pre"><span class="text-bold">Job Modify Index: 7</span></span>
2017-07-21 02:31:57 +00:00
<span>&nbsp;</span>
<span>
<span class="text-green">admin@hashicorp.com:</span>
2018-03-22 20:39:18 +00:00
<span>nomad job run -check-index 7 example.nomad</span>
2017-07-21 02:31:57 +00:00
</span>
<span>==> Monitoring evaluation "e338a6ae"</span>
<span class="pre"> Evaluation triggered by job "example"</span>
<span class="pre"> Evaluation within deployment: "43310206"</span>
<span class="pre"> Allocation "991a0d89" created: node "c5916a99", group "cache"</span>
<span class="pre"> Allocation "daee8be1" created: node "c5916a99", group "cache"</span>
<span class="pre"> Allocation "83f29312" modified: node "c5916a99", group "cache"</span>
<span class="pre"> Evaluation status changed: "pending" -> "complete"</span>
<span>==> Evaluation "e338a6ae" finished with status "complete"</span>
2017-03-28 03:37:59 +00:00
</div>
</div>
2017-07-21 02:31:57 +00:00
</div>
</div>
2015-09-12 00:01:02 +00:00
2017-07-21 02:31:57 +00:00
<div class="row">
<div class="col-sm-12">
2019-10-03 20:07:53 +00:00
<h3 class="g-type-display-4">View Application Logs</h3>
<p class="g-type-body">
2017-07-21 02:31:57 +00:00
Stream application logs directly in the terminal to help analyze and
debug applications.
</p>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="terminal">
<span class="circle"><%= inline_svg "terminal-circle.svg" %></span>
<span class="circle"><%= inline_svg "terminal-circle.svg" %></span>
<span class="circle"><%= inline_svg "terminal-circle.svg" %></span>
2017-07-21 02:31:57 +00:00
<div class="terminal-content">
<span>
<span class="text-green">admin@hashicorp.com:</span>
2018-03-22 20:39:18 +00:00
<span>nomad alloc logs -tail -job example</span>
2017-07-21 02:31:57 +00:00
</span>
<span><%= Time.now.strftime("%d %b %H:%M:%S") %> # Server started, Redis version 3.2.9</span>
<span><%= Time.now.strftime("%d %b %H:%M:%S") %> * The server is now ready to accept connections on port 6379</span>
2017-03-28 03:37:59 +00:00
</div>
</div>
</div>
</div>
2015-09-12 00:01:02 +00:00
2019-10-03 20:07:53 +00:00
<div class="row get-started">
2017-07-21 02:31:57 +00:00
<div class="col-sm-12 col-lg-8 col-lg-offset-2">
2019-10-03 20:07:53 +00:00
<p class="g-type-body-large lead" align="center">
2017-07-21 02:31:57 +00:00
The introduction contains a walkthrough guide, glossary, and a range
2017-07-24 19:11:17 +00:00
of examples for learning and experimenting with Nomad.
2017-07-21 02:31:57 +00:00
</p>
<p align="center">
<a href="/intro/index.html" class="button primary">Get Started</a>
</p>
2017-03-28 03:37:59 +00:00
</div>
</div>
</div>
2017-07-21 02:31:57 +00:00
</section>