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
alloc_endpoint.go
alloc_endpoint_test.go parallel nomad tests 2017-07-25 17:39:36 -07:00
blocked_evals.go
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
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
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
node_endpoint.go
node_endpoint_test.go parallel nomad tests 2017-07-25 17:39:36 -07:00
operator_endpoint.go
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
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
plan_endpoint_test.go parallel nomad tests 2017-07-25 17:39:36 -07:00
plan_queue.go
plan_queue_test.go parallel nomad tests 2017-07-25 17:39:36 -07:00
pool.go
raft_rpc.go
regions_endpoint.go
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
status_endpoint_test.go parallel nomad tests 2017-07-25 17:39:36 -07:00
system_endpoint.go
system_endpoint_test.go parallel nomad tests 2017-07-25 17:39:36 -07:00
timetable.go
timetable_test.go parallel nomad tests 2017-07-25 17:39:36 -07:00
util.go
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
worker.go
worker_test.go parallel nomad tests 2017-07-25 17:39:36 -07:00