Commit Graph

15 Commits

Author SHA1 Message Date
Alex Dadgar
260b566c91 server 2018-09-15 16:23:13 -07:00
Preetha Appan
7a5791f39e Implement support for even spread across datacenters, with unit test 2018-09-04 16:10:11 -05:00
Preetha Appan
fa7e3a3f35 Allow empty spread targets, and validate target percentages. 2018-09-04 16:10:11 -05:00
Preetha Appan
e2ce63e489 Fix warnings 2018-09-04 16:10:11 -05:00
Preetha Appan
fd697272a7 Implement spread iterator that scores according to percentage of desired count in each target.
Added this as a new step in the stack and some unit tests
2018-09-04 16:10:11 -05:00
Preetha Appan
3f7e0ffa4d Back out changes to propertyset that were not necessary for affinities 2018-09-04 16:10:11 -05:00
Preetha Appan
00924555a8 Implement affinity support in generic scheduler 2018-09-04 16:10:11 -05:00
Alex Dadgar
ac1539d5d9 Sync namespace changes 2017-09-07 17:04:21 -07:00
Alex Dadgar
5a5e043b75 Review fixes 2017-08-01 14:18:52 -07:00
Alex Dadgar
4e71ba2e71 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
dd4befbec2 Fix incorrect destructive update with distinct_property constraint
This PR fixes an issue in which an update to a task group with a
distinct property constraint would result in an incorrect destructive
update.
2017-07-31 11:17:35 -07:00
Alex Dadgar
336a976205 Fix in-place update 2017-03-09 22:03:10 -08:00
Alex Dadgar
cab1a8da95 Feedback addressed 2017-03-09 21:36:27 -08:00
Alex Dadgar
ddb9292424 Fix filtering issue and add a test that would catch it 2017-03-09 16:20:39 -08:00
Alex Dadgar
e4954a48c2 Refactor 2017-03-09 15:26:46 -08:00