open-nomad/nomad/structs
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
..
config Update consul/api and comment to custom http.Client 2017-05-30 15:11:32 -07:00
bitmap.go assign names 2017-07-07 12:03:11 -07:00
bitmap_test.go assign names 2017-07-07 12:03:11 -07:00
diff.go Rename CreateDeployments and remove cancelling behavior in state_store 2017-07-07 12:10:04 -07:00
diff_test.go Add support for go-getter modes 2017-07-06 10:45:44 -07:00
funcs.go Disallow update stanza on batch jobs 2017-07-07 12:11:39 -07:00
funcs_test.go Moved functions to helper from structs 2017-01-18 15:55:14 -08:00
network.go Shrink dynamic port range 2017-07-18 13:47:53 -07:00
network_test.go Fix flakey test TestNetworkIndex_AssignNetwork_Dynamic_Contention 2017-02-22 15:58:21 -08:00
node_class.go Only interpret vars wrapped in braces 2016-02-04 17:26:46 -08:00
node_class_test.go Making driver fingerprinters run periodically and unblocking evals when node registration happens 2016-03-31 18:11:27 -07:00
operator.go Operator command/endpoint/documentation 2017-02-09 18:04:46 -08:00
structs.go Distinct Property supports arbitrary limit 2017-07-31 16:52:13 -07:00
structs_codegen.go Switch to using go/codec and use code generation 2016-02-20 18:05:17 -08:00
structs_test.go Distinct Property supports arbitrary limit 2017-07-31 16:52:13 -07:00