open-nomad/nomad/state
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
..
autopilot.go goimports 2019-01-22 15:44:31 -08:00
autopilot_test.go implement MinQuorum 2020-02-16 16:04:59 -06:00
iterator.go csi: use node MaxVolumes during scheduling (#7565) 2020-03-31 17:16:47 -04:00
schema.go scaling api: more testing around the scaling events api 2020-04-01 16:39:23 +00:00
schema_test.go nomad: ensure a unique ClusterID exists when leader (gh-6702) 2020-01-31 19:03:26 -06:00
state_store.go server: stop after client disconnect (#7939) 2020-05-13 16:39:04 -04:00
state_store_oss.go include pro tag in serveral oss.go files 2020-02-10 15:56:14 -05:00
state_store_test.go csi: fix plugin counts on node update (#7844) 2020-05-05 15:39:57 -04:00
testing.go csi: plugin deregistration on plugin job GC (#7502) 2020-03-26 17:07:18 -04:00
testing_oss.go goimports 2019-01-22 15:44:31 -08:00