2016-10-09 05:49:03 +00:00
|
|
|
---
|
2018-04-18 22:18:23 +00:00
|
|
|
layout: "guides"
|
2018-06-22 20:54:10 +00:00
|
|
|
page_title: "Job Lifecycle"
|
2018-04-18 22:18:23 +00:00
|
|
|
sidebar_current: "guides-operating-a-job"
|
2016-10-09 05:49:03 +00:00
|
|
|
description: |-
|
2018-06-22 20:54:10 +00:00
|
|
|
Learn how to deploy and manage a Nomad Job.
|
2016-10-09 05:49:03 +00:00
|
|
|
---
|
|
|
|
|
2019-05-08 21:40:38 +00:00
|
|
|
# Deploying & Managing Applications
|
|
|
|
|
|
|
|
Developers deploy and manage their applications in Nomad via jobs.
|
|
|
|
|
|
|
|
This section provides some best practices and guidance for operating jobs under
|
|
|
|
Nomad. Please navigate the appropriate sub-sections for more information.
|
|
|
|
|
|
|
|
## Deploying
|
2016-10-09 05:49:03 +00:00
|
|
|
|
|
|
|
The general flow for operating a job in Nomad is:
|
|
|
|
|
2016-10-28 00:36:26 +00:00
|
|
|
1. Author the job file according to the [job specification](/docs/job-specification/index.html)
|
2016-10-09 05:49:03 +00:00
|
|
|
1. Plan and review the changes with a Nomad server
|
|
|
|
1. Submit the job file to a Nomad server
|
|
|
|
1. (Optional) Review job status and logs
|
|
|
|
|
2019-05-08 21:40:38 +00:00
|
|
|
## Updating
|
|
|
|
|
2016-10-09 05:49:03 +00:00
|
|
|
When updating a job, there are a number of built-in update strategies which may
|
|
|
|
be defined in the job file. The general flow for updating an existing job in
|
|
|
|
Nomad is:
|
|
|
|
|
|
|
|
1. Modify the existing job file with the desired changes
|
|
|
|
1. Plan and review the changes with a Nomad server
|
|
|
|
1. Submit the job file to a Nomad server
|
|
|
|
1. (Optional) Review job status and logs
|
|
|
|
|
|
|
|
Because the job file defines the update strategy (blue-green, rolling updates,
|
|
|
|
etc.), the workflow remains the same regardless of whether this is an initial
|
|
|
|
deployment or a long-running job.
|