Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
914ed9ff
Commit
914ed9ff
authored
7 years ago
by
Alex Dadgar
Browse files
Options
Download
Email Patches
Plain Diff
Clarify all_at_once parameter
Fixes
https://github.com/hashicorp/nomad/issues/3125
parent
9fb45966
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
website/source/api/json-jobs.html.md
+5
-3
website/source/api/json-jobs.html.md
website/source/docs/job-specification/job.html.md
+6
-2
website/source/docs/job-specification/job.html.md
with
11 additions
and
5 deletions
+11
-5
website/source/api/json-jobs.html.md
+
5
-
3
View file @
914ed9ff
...
...
@@ -130,9 +130,11 @@ their default values if any for each type of object.
The
`Job`
object supports the following keys:
-
`AllAtOnce`
- Controls if the entire set of tasks in the job must
be placed atomically or if they can be scheduled incrementally.
This should only be used for special circumstances. Defaults to
`false`
.
-
`AllAtOnce`
- Controls whether the scheduler can make partial placements if
optimistic scheduling resulted in an oversubscribed node. This does not
control whether all allocations for the job, where all would be the desired
count for each task group, must be placed atomically. This should only be
used for special circumstances. Defaults to
`false`
.
-
`Constraints`
- A list to define additional constraints where a job can be
run. See the constraint reference for more details.
...
...
This diff is collapsed.
Click to expand it.
website/source/docs/job-specification/job.html.md
+
6
-
2
View file @
914ed9ff
...
...
@@ -26,8 +26,6 @@ of one or many tasks.
```
hcl
job
"docs"
{
all_at_once
=
true
constraint
{
# ...
}
...
...
@@ -70,6 +68,12 @@ job "docs" {
must be placed atomically or if they can be scheduled incrementally. This
should only be used for special circumstances.
-
`all_at_once`
`(bool: false)`
- Controls whether the scheduler can make
partial placements if optimistic scheduling resulted in an oversubscribed
node. This does not control whether all allocations for the job, where all
would be the desired count for each task group, must be placed atomically.
This should only be used for special circumstances.
-
`constraint`
<code>
(
[
Constraint
][
constraint
]
: nil)
</code>
-
This can be provided multiple times to define additional constraints. See the
[
Nomad constraint reference
](
/docs/job-specification/constraint.html
)
for more
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help