open-nomad/nomad
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
..
deploymentwatcher parallel deploymentwatcher tests 2017-07-21 19:23:24 -07:00
mock Tests 2017-07-07 12:03:11 -07:00
state Expose FSM errors into deployment watcher and API 2017-07-25 16:23:22 -07:00
structs Distinct Property supports arbitrary limit 2017-07-31 16:52:13 -07:00
types Change the signature of the PeriodicCallback to return an error 2016-06-10 15:54:39 -04:00
alloc_endpoint.go Nomad builds 2017-02-07 20:31:23 -08:00
alloc_endpoint_test.go parallel nomad tests 2017-07-25 17:39:36 -07:00
blocked_evals.go Cancel blocked evals upon successful one for job 2017-01-04 16:16:04 -08:00
blocked_evals_test.go parallel nomad tests 2017-07-25 17:39:36 -07:00
config.go Add config options 2017-07-07 12:05:56 -07:00
core_sched.go Deployment GC ensures no alloc references 2017-07-17 14:09:59 -07:00
core_sched_test.go parallel nomad tests 2017-07-25 17:39:36 -07:00
deployment_endpoint.go Small fixes and UX changes 2017-07-19 13:34:24 -07:00
deployment_endpoint_test.go parallel nomad tests 2017-07-25 17:39:36 -07:00
deployment_watcher_shims.go Expose FSM errors into deployment watcher and API 2017-07-25 16:23:22 -07:00
eval_broker.go NewEvalBroker comment 2017-04-14 15:26:54 -07:00
eval_broker_test.go parallel nomad tests 2017-07-25 17:39:36 -07:00
eval_endpoint.go Nomad builds 2017-02-07 20:31:23 -08:00
eval_endpoint_test.go parallel nomad tests 2017-07-25 17:39:36 -07:00
fsm.go Job stability 2017-07-07 12:10:04 -07:00
fsm_test.go parallel nomad tests 2017-07-25 17:39:36 -07:00
heartbeat.go Nomad builds 2017-02-07 20:31:23 -08:00
heartbeat_test.go parallel nomad tests 2017-07-25 17:39:36 -07:00
job_endpoint.go test fixes 2017-07-07 14:11:27 -07:00
job_endpoint_test.go parallel nomad tests 2017-07-25 17:39:36 -07:00
leader.go When restoring periodic jobs, take into consideration launch time zone 2017-07-07 16:18:56 -07:00
leader_test.go Push to configs 2017-04-14 15:24:55 -07:00
merge.go nomad: adding merge guard for non-nomad servers 2015-06-04 13:15:46 +02:00
node_endpoint.go Fix error checking 2017-03-29 13:59:43 -07:00
node_endpoint_test.go parallel nomad tests 2017-07-25 17:39:36 -07:00
operator_endpoint.go Operator command/endpoint/documentation 2017-02-09 18:04:46 -08:00
operator_endpoint_test.go parallel nomad tests 2017-07-25 17:39:36 -07:00
periodic.go Show submit time 2017-07-07 12:07:07 -07:00
periodic_endpoint.go Nomad builds 2017-02-07 20:31:23 -08:00
periodic_endpoint_test.go parallel nomad tests 2017-07-25 17:39:36 -07:00
periodic_test.go parallel nomad tests 2017-07-25 17:39:36 -07:00
plan_apply.go Fix typo 2017-07-14 09:53:46 -07:00
plan_apply_pool.go Log reason a plan gets rejected per node. 2017-07-13 17:14:02 -07:00
plan_apply_pool_test.go parallel nomad tests 2017-07-25 17:39:36 -07:00
plan_apply_test.go parallel nomad tests 2017-07-25 17:39:36 -07:00
plan_endpoint.go core: Pause NackTimeout while in the plan_queue as progress is being made 2016-03-04 12:59:35 -08:00
plan_endpoint_test.go parallel nomad tests 2017-07-25 17:39:36 -07:00
plan_queue.go nomad: cleanup stats goroutines 2015-08-05 16:45:50 -07:00
plan_queue_test.go parallel nomad tests 2017-07-25 17:39:36 -07:00
pool.go Remove dead code 2017-03-03 18:27:49 -08:00
raft_rpc.go Join + Leave peer 2017-02-02 15:49:06 -08:00
regions_endpoint.go nomad: leader forwarding not needed for regions 2015-11-23 22:27:07 -08:00
regions_endpoint_test.go parallel nomad tests 2017-07-25 17:39:36 -07:00
rpc.go Add watcher to server 2017-07-07 12:03:11 -07:00
rpc_test.go parallel nomad tests 2017-07-25 17:39:36 -07:00
serf.go Fix flaky test: TestServer_RPC_MixedTLS 2017-05-11 14:55:12 -07:00
serf_test.go parallel nomad tests 2017-07-25 17:39:36 -07:00
server.go more comment fixes 2017-07-07 12:03:11 -07:00
server_test.go parallel nomad tests 2017-07-25 17:39:36 -07:00
status_endpoint.go Respond to comments 2017-02-08 14:50:19 -08:00
status_endpoint_test.go parallel nomad tests 2017-07-25 17:39:36 -07:00
system_endpoint.go Making servers reconcile job summaries when they acquire leadership 2016-08-05 16:47:36 -07:00
system_endpoint_test.go parallel nomad tests 2017-07-25 17:39:36 -07:00
timetable.go Switch to using go/codec and use code generation 2016-02-20 18:05:17 -08:00
timetable_test.go parallel nomad tests 2017-07-25 17:39:36 -07:00
util.go Reconcile, clean up, and centralize API version numbers (major and minor). 2016-06-10 15:50:11 -04:00
util_test.go parallel nomad tests 2017-07-25 17:39:36 -07:00
vault.go Fix Vault Client panic when given nonexistant role 2017-05-16 12:59:58 -04:00
vault_test.go Make test Vault pick random ports 2017-07-25 17:40:59 -07:00
vault_testing.go Add server metrics 2017-02-14 16:02:18 -08:00
worker.go Nomad builds 2017-02-07 20:31:23 -08:00
worker_test.go parallel nomad tests 2017-07-25 17:39:36 -07:00