Commit Graph

5 Commits

Author SHA1 Message Date
Alex Dadgar 2650bb1d12 Distinct Property supports arbitrary limit
This PR enhances the distinct_property constraint such that a limit can
be specified in the RTarget/value parameter. This allows constraints
such as:

```
constraint {
  distinct_property = "${meta.rack}"
  value = "2"
}
```

This restricts any given rack from running more than 2 allocations from
the task group.

Fixes https://github.com/hashicorp/nomad/issues/1146
2017-07-31 16:52:13 -07:00
Alex Dadgar a883b325ff Example JSON is submitable
This PR makes the example JSON job submitable via the HTTP API.
2017-07-28 09:02:15 -07:00
Alex Dadgar fac2567521 Update API and JSON Job Documentation
This PR updates the api documentation to reflect 0.6 HTTP API and the
JSON job specification as well.
2017-07-25 17:18:15 -07:00
Charlie Voiselle 3cff38ff94 Spellcheck sweep of website directory
Caught some typos.  Made units separate from the numbers 1GHz -> 1 GHz
after talking to Nick about questions of style (this has the side effect of making future spell checking easier).
2017-07-17 14:41:50 -04:00
Seth Vargo 2193721e59
Migrate JSON Jobs to new namespace 2017-05-30 20:25:08 -04:00
Renamed from website/source/docs/http/json-jobs.html.md (Browse further)