open-nomad/client/state
Lang Martin ad2fb4b297 client/heartbeatstop: don't store client state, use timeout
In order to minimize this change while keeping a simple version of the
behavior, we set `lastOk` to the current time less the intial server
connection timeout. If the client starts and never contacts the
server, it will stop all configured tasks after the initial server
connection grace period, on the assumption that we've been out of
touch longer than any configured `stop_after_client_disconnect`.

The more complex state behavior might be justified later, but we
should learn about failure modes first.
2020-05-01 12:35:49 -04:00
..
testdata client/state: support upgrading from 0.8->0.9 2018-12-19 10:39:27 -08:00
08types.go client: fix bug during 0.8 state up grade that causes external drivers to fail 2019-01-30 14:22:29 -05:00
db_test.go csi: add dynamicplugins registry to client state store (#7330) 2020-03-23 13:58:30 -04:00
errdb.go linting fixes 2019-01-12 10:38:20 -06:00
interface.go client/heartbeatstop: don't store client state, use timeout 2020-05-01 12:35:49 -04:00
memdb.go client/heartbeatstop: don't store client state, use timeout 2020-05-01 12:35:49 -04:00
noopdb.go client/heartbeatstop: don't store client state, use timeout 2020-05-01 12:35:49 -04:00
state_database.go client/heartbeatstop: don't store client state, use timeout 2020-05-01 12:35:49 -04:00
upgrade.go fixup! vendor: explicit use of hashicorp/go-msgpack 2020-03-31 09:48:07 -04:00
upgrade_int_test.go move reattach config 2019-01-22 15:11:58 -08:00
upgrade_test.go client/state: improve upgradeTaskBucket error handling 2018-12-19 10:39:27 -08:00