open-nomad/jobspec/test-fixtures
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
..
artifacts.hcl chore: Format hcl configurations 2019-07-20 16:55:07 +02:00
bad-artifact.hcl chore: Format hcl configurations 2019-07-20 16:55:07 +02:00
bad-ports.hcl run "make hclfmt" 2020-02-03 12:15:53 -05:00
basic.hcl server: stop after client disconnect (#7939) 2020-05-13 16:39:04 -04:00
basic_wrong_key.hcl run "make hclfmt" 2020-02-03 12:15:53 -05:00
csi-plugin.hcl CSI Plugin Registration (#6555) 2020-03-23 13:58:28 -04:00
default-job.hcl jobspec: defaults 2015-09-14 18:34:26 -07:00
distinctHosts-constraint.hcl chore: Format hcl configurations 2019-07-20 16:55:07 +02:00
distinctProperty-constraint.hcl chore: Format hcl configurations 2019-07-20 16:55:07 +02:00
incorrect-service-def.hcl run "make hclfmt" 2020-02-03 12:15:53 -05:00
job-with-kill-signal.hcl chore: Format hcl configurations 2019-07-20 16:55:07 +02:00
migrate-job.hcl chore: Format hcl configurations 2019-07-20 16:55:07 +02:00
multi-network.hcl chore: Format hcl configurations 2019-07-20 16:55:07 +02:00
multi-resource.hcl chore: Format hcl configurations 2019-07-20 16:55:07 +02:00
multi-vault.hcl chore: initial hclfmt 2019-10-11 14:00:05 +02:00
overlapping-ports.hcl run "make hclfmt" 2020-02-03 12:15:53 -05:00
parameterized_job.hcl chore: initial hclfmt 2019-10-11 14:00:05 +02:00
periodic-cron.hcl chore: initial hclfmt 2019-10-11 14:00:05 +02:00
regexp-constraint.hcl chore: initial hclfmt 2019-10-11 14:00:05 +02:00
reschedule-job-unlimited.hcl chore: initial hclfmt 2019-10-11 14:00:05 +02:00
reschedule-job.hcl chore: initial hclfmt 2019-10-11 14:00:05 +02:00
service-check-bad-header-2.hcl chore: initial hclfmt 2019-10-11 14:00:05 +02:00
service-check-bad-header.hcl chore: initial hclfmt 2019-10-11 14:00:05 +02:00
service-check-driver-address.hcl chore: initial hclfmt 2019-10-11 14:00:05 +02:00
service-check-initial-status.hcl chore: initial hclfmt 2019-10-11 14:00:05 +02:00
service-check-restart.hcl chore: initial hclfmt 2019-10-11 14:00:05 +02:00
service-enable-tag-override.hcl Update consul-template to v0.24.1 and remove deprecated vault_grace (#7170) 2020-02-23 16:24:53 +01:00
service-meta.hcl chore: initial hclfmt 2019-10-11 14:00:05 +02:00
set-contains-constraint.hcl chore: initial hclfmt 2019-10-11 14:00:05 +02:00
specify-job.hcl chore: initial hclfmt 2019-10-11 14:00:05 +02:00
task-nested-config.hcl Implement configuration validation for all task drivers 2016-04-10 00:42:57 +02:00
tg-network.hcl shutdown delay for task groups 2019-12-16 11:38:16 -05:00
tg-scaling-policy-minimal.hcl ci: add a linting check for HCL files (#7791) 2020-04-23 14:32:44 -04:00
tg-scaling-policy-multi-policy.hcl ci: add a linting check for HCL files (#7791) 2020-04-23 14:32:44 -04:00
tg-scaling-policy.hcl update enterprise audit blurb 2020-03-24 19:42:02 -04:00
tg-service-check-expose.hcl hclfmt test fixtures (#7584) 2020-04-01 10:48:28 -04:00
tg-service-check.hcl chore: initial hclfmt 2019-10-11 14:00:05 +02:00
tg-service-connect-local-service.hcl ci: add a linting check for HCL files (#7791) 2020-04-23 14:32:44 -04:00
tg-service-connect-proxy.hcl ci: add a linting check for HCL files (#7791) 2020-04-23 14:32:44 -04:00
tg-service-connect-sidecar_task-name.hcl ci: add a linting check for HCL files (#7791) 2020-04-23 14:32:44 -04:00
tg-service-enable-tag-override.hcl Update consul-template to v0.24.1 and remove deprecated vault_grace (#7170) 2020-02-23 16:24:53 +01:00
tg-service-proxy-expose.hcl hclfmt test fixtures (#7584) 2020-04-01 10:48:28 -04:00
vault_inheritance.hcl chore: initial hclfmt 2019-10-11 14:00:05 +02:00
version-constraint.hcl chore: initial hclfmt 2019-10-11 14:00:05 +02:00