open-nomad/scheduler
Tim Gross 87101b131a scheduler: filter device instance IDs by constraints (#18141)
When the scheduler assigns a device instance, it iterates over the feasible
devices and then picks the first instance with availability. If the jobspec uses
a constraint on device ID, this can lead to buggy/surprising behavior where the
node's device matches the constraint but then the individual device instance
does not.

Add a second filter based on the `${device.ids}` constraint after selecting a
node's device to ensure the device instance ID falls within the constraint as
well.

Fixes: #18112
2023-08-03 14:58:51 -04:00
..
benchmarks
annotate.go
annotate_test.go
context.go
context_test.go
device.go scheduler: filter device instance IDs by constraints (#18141) 2023-08-03 14:58:51 -04:00
device_test.go scheduler: filter device instance IDs by constraints (#18141) 2023-08-03 14:58:51 -04:00
feasible.go
feasible_test.go
generic_sched.go core: remove unnecessary call to SetNodes and adds DC downgrade test (#17655) 2023-06-22 13:26:14 -04:00
generic_sched_test.go core: remove unnecessary call to SetNodes and adds DC downgrade test (#17655) 2023-06-22 13:26:14 -04:00
preemption.go
preemption_test.go node pools: apply node pool scheduler configuration (#17598) 2023-06-21 20:31:50 -04:00
propertyset.go
rank.go node pools: apply node pool scheduler configuration (#17598) 2023-06-21 20:31:50 -04:00
rank_test.go node pools: apply node pool scheduler configuration (#17598) 2023-06-21 20:31:50 -04:00
reconcile.go
reconcile_test.go
reconcile_util.go
reconcile_util_test.go backport of commit b3601e00578b26d879f8f2678dc8b03e17a2db18 (#18140) 2023-08-03 09:44:19 -05:00
scheduler.go node pools: apply node pool scheduler configuration (#17598) 2023-06-21 20:31:50 -04:00
scheduler_oss.go
scheduler_sysbatch_test.go
scheduler_system.go node pools: apply node pool scheduler configuration (#17598) 2023-06-21 20:31:50 -04:00
scheduler_system_test.go
scheduler_test.go node pools: apply node pool scheduler configuration (#17598) 2023-06-21 20:31:50 -04:00
select.go
select_test.go
spread.go
spread_test.go
stack.go node pools: apply node pool scheduler configuration (#17598) 2023-06-21 20:31:50 -04:00
stack_oss.go
stack_test.go
system_util.go
system_util_test.go
testing.go
util.go scheduler: fix panic in `render_templates` destructive update check (#18100) 2023-07-31 11:53:30 -04:00
util_test.go Backport of feature: Add new field render_templates on restart block into release/1.6.x (#18094) 2023-07-28 13:54:00 -05:00