open-nomad/jobspec
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
..
test-fixtures server: stop after client disconnect (#7939) 2020-05-13 16:39:04 -04:00
parse.go core: add semver constraint 2019-11-19 08:40:19 -08:00
parse_group.go server: stop after client disconnect (#7939) 2020-05-13 16:39:04 -04:00
parse_job.go command, docs: create and document consul token configuration for connect acls (gh-6716) 2020-01-31 19:02:53 -06:00
parse_network.go quota: parse network stanza in quotas (#6511) 2019-10-24 10:41:54 -04:00
parse_service.go Merge pull request #7690 from hashicorp/b-inspect-proxy-output 2020-04-20 10:17:54 -06:00
parse_task.go connect: extract common task keys 2020-04-10 09:49:19 -06:00
parse_test.go server: stop after client disconnect (#7939) 2020-05-13 16:39:04 -04:00
utils.go consul: add Connect structs 2019-08-06 08:15:07 -07:00
utils_test.go consul: add Connect structs 2019-08-06 08:15:07 -07:00