open-nomad/scheduler
Mahmood Ali e06ff1d613
scheduler: stop allocs in unrelated nodes (#11391)
The system scheduler should leave allocs on draining nodes as-is, but
stop node stop allocs on nodes that are no longer part of the job
datacenters.

Previously, the scheduler did not make the distinction and left system
job allocs intact if they are already running.

I've added a failing test first, which you can see in https://app.circleci.com/jobs/github/hashicorp/nomad/179661 .

Fixes https://github.com/hashicorp/nomad/issues/11373
2021-10-27 07:04:13 -07:00
..
annotate.go
annotate_test.go
context.go
context_test.go
device.go
device_test.go
feasible.go
feasible_test.go
generic_sched.go scheduler: stop allocs in unrelated nodes (#11391) 2021-10-27 07:04:13 -07:00
generic_sched_test.go gofmt all the files 2021-10-01 10:14:28 -04:00
preemption.go
preemption_test.go Fix preemption panic (#11346) 2021-10-19 20:22:03 -04:00
propertyset.go
rank.go chore: fix incorrect docstring formatting. 2021-08-30 11:08:12 +02:00
rank_test.go
reconcile.go
reconcile_test.go gofmt all the files 2021-10-01 10:14:28 -04:00
reconcile_util.go
reconcile_util_test.go
scheduler.go core: implement system batch scheduler 2021-08-03 10:30:47 -04:00
scheduler_oss.go gofmt all the files 2021-10-01 10:14:28 -04:00
scheduler_sysbatch_test.go test: use Len instead of Equal on system and sysbatch node constraint tests 2021-09-02 11:36:02 -04:00
scheduler_system.go scheduler: stop allocs in unrelated nodes (#11391) 2021-10-27 07:04:13 -07:00
scheduler_system_test.go scheduler: stop allocs in unrelated nodes (#11391) 2021-10-27 07:04:13 -07:00
select.go chore: fix incorrect docstring formatting. 2021-08-30 11:08:12 +02:00
select_test.go
spread.go
spread_test.go
stack.go core: implement system batch scheduler 2021-08-03 10:30:47 -04:00
stack_not_ent.go gofmt all the files 2021-10-01 10:14:28 -04:00
stack_test.go core: implement system batch scheduler 2021-08-03 10:30:47 -04:00
testing.go
util.go scheduler: stop allocs in unrelated nodes (#11391) 2021-10-27 07:04:13 -07:00
util_test.go scheduler: stop allocs in unrelated nodes (#11391) 2021-10-27 07:04:13 -07:00