open-nomad/scheduler
Lang Martin d3c4700cd3
server: stop after client disconnect (#7939)
* jobspec, api: add stop_after_client_disconnect

* nomad/state/state_store: error message typo

* structs: alloc methods to support stop_after_client_disconnect

1. a global AllocStates to track status changes with timestamps. We
   need this to track the time at which the alloc became lost
   originally.

2. ShouldClientStop() and WaitClientStop() to actually do the math

* scheduler/reconcile_util: delayByStopAfterClientDisconnect

* scheduler/reconcile: use delayByStopAfterClientDisconnect

* scheduler/util: updateNonTerminalAllocsToLost comments

This was setup to only update allocs to lost if the DesiredStatus had
already been set by the scheduler. It seems like the intention was to
update the status from any non-terminal state, and not all lost allocs
have been marked stop or evict by now

* scheduler/testing: AssertEvalStatus just use require

* scheduler/generic_sched: don't create a blocked eval if delayed

* scheduler/generic_sched_test: several scheduling cases
2020-05-13 16:39:04 -04:00
..
annotate.go
annotate_test.go
context.go
context_test.go
device.go
device_test.go
feasible.go scheduler: prevent a reported NPE for CSI (#7633) 2020-04-06 09:42:27 -04:00
feasible_test.go csi: use node MaxVolumes during scheduling (#7565) 2020-03-31 17:16:47 -04:00
generic_sched.go server: stop after client disconnect (#7939) 2020-05-13 16:39:04 -04:00
generic_sched_oss.go include pro tag in serveral oss.go files 2020-02-10 15:56:14 -05:00
generic_sched_test.go server: stop after client disconnect (#7939) 2020-05-13 16:39:04 -04:00
preemption.go
preemption_test.go tests and some clean up 2020-05-01 13:13:30 -04:00
propertyset.go
rank.go tests and some clean up 2020-05-01 13:13:30 -04:00
rank_test.go missed fixing one invocation 2020-05-01 13:38:46 -04:00
reconcile.go server: stop after client disconnect (#7939) 2020-05-13 16:39:04 -04:00
reconcile_test.go
reconcile_util.go server: stop after client disconnect (#7939) 2020-05-13 16:39:04 -04:00
reconcile_util_test.go
scheduler.go csi: use node MaxVolumes during scheduling (#7565) 2020-03-31 17:16:47 -04:00
scheduler_oss.go include pro tag in serveral oss.go files 2020-02-10 15:56:14 -05:00
select.go
select_test.go
spread.go
spread_test.go
stack.go tests and some clean up 2020-05-01 13:13:30 -04:00
stack_not_ent.go
stack_oss.go tests and some clean up 2020-05-01 13:13:30 -04:00
stack_test.go csi: fix index maintenance for CSIVolume and CSIPlugin tables (#7049) 2020-03-23 13:58:29 -04:00
system_sched.go wip: added job.scale rpc endpoint, needs explicit test (tested via http now) 2020-03-24 13:57:09 +00:00
system_sched_test.go
testing.go server: stop after client disconnect (#7939) 2020-05-13 16:39:04 -04:00
util.go server: stop after client disconnect (#7939) 2020-05-13 16:39:04 -04:00
util_test.go Detect network mode change 2020-03-21 16:51:10 -04:00