open-nomad/scheduler
Tim Gross 5fc63ace0b
scheduler: count implicit spread targets as a single target (#17195)
When calculating the score in the `SpreadIterator`, the score boost is
proportional to the difference between the current and desired count. But when
there are implicit spread targets, the current count is the sum of the possible
implicit targets, which results in incorrect scoring unless there's only one
implicit target.

This changeset updates the `propertySet` struct to accept a set of explicit
target values so it can detect when a property value falls into the implicit set
and should be combined with other implicit values.

Fixes: #11823
2023-05-17 10:25:00 -04:00
..
benchmarks api: enable support for setting original job source (#16763) 2023-04-11 08:45:08 -05:00
annotate.go logs: fix missing allocation logs after update to Nomad 1.5.4 (#17087) 2023-05-04 16:01:18 -04:00
annotate_test.go logs: fix missing allocation logs after update to Nomad 1.5.4 (#17087) 2023-05-04 16:01:18 -04:00
context.go
context_test.go
device.go
device_test.go
feasible.go [scheduler] Honor `false` for distinct hosts constraint (#16907) 2023-04-17 17:43:56 -04:00
feasible_test.go [scheduler] Honor `false` for distinct hosts constraint (#16907) 2023-04-17 17:43:56 -04:00
generic_sched.go
generic_sched_test.go api: enable support for setting original job source (#16763) 2023-04-11 08:45:08 -05:00
preemption.go
preemption_test.go api: enable support for setting original job source (#16763) 2023-04-11 08:45:08 -05:00
propertyset.go scheduler: count implicit spread targets as a single target (#17195) 2023-05-17 10:25:00 -04:00
rank.go
rank_test.go
reconcile.go
reconcile_test.go
reconcile_util.go
reconcile_util_test.go
scheduler.go
scheduler_oss.go
scheduler_sysbatch_test.go api: enable support for setting original job source (#16763) 2023-04-11 08:45:08 -05:00
scheduler_system.go
scheduler_system_test.go api: enable support for setting original job source (#16763) 2023-04-11 08:45:08 -05:00
select.go
select_test.go
spread.go scheduler: count implicit spread targets as a single target (#17195) 2023-05-17 10:25:00 -04:00
spread_test.go scheduler: count implicit spread targets as a single target (#17195) 2023-05-17 10:25:00 -04:00
stack.go
stack_oss.go
stack_test.go
system_util.go
system_util_test.go
testing.go
util.go logs: fix missing allocation logs after update to Nomad 1.5.4 (#17087) 2023-05-04 16:01:18 -04:00
util_test.go