open-nomad/client/allocrunner
Danielle Tomlinson 95a0c4fb29 taskrunner: Use a random suffix for Task Config
The RestartCount is not really suitable for use as a source of
uniqueness within task invocations as it is not monotonic, and interacts
with the restart stanza in a users config, so conflates restarts due to
task failures, with restarts due to enviromental changes, such as consul
template or vault secrets changing.

Here we instead use a substring from a uuid, which is more random than
we strictly need, but is nicer than rolling our own random string
generator here.
2018-12-19 00:38:54 +01:00
..
interfaces client: Rename drivers/shared/env => client/taskenv 2018-11-30 12:18:39 +01:00
state allocrunnerv2 -> allocrunner 2018-10-16 16:56:56 -07:00
taskrunner taskrunner: Use a random suffix for Task Config 2018-12-19 00:38:54 +01:00
alloc_runner.go client: Unify handling of previous and preempted allocs 2018-12-11 13:12:35 +01:00
alloc_runner_hooks.go client: Unify handling of previous and preempted allocs 2018-12-11 13:12:35 +01:00
alloc_runner_test.go allocrunner: Basic test alloc runner 2018-12-06 12:28:23 +01:00
allocdir_hook.go allocrunnerv2 -> allocrunner 2018-10-16 16:56:56 -07:00
config.go client: Unify handling of previous and preempted allocs 2018-12-11 13:12:35 +01:00
health_hook.go Make alloc health watcher a postrun hook rather than shutdown hook 2018-12-06 12:30:31 -08:00
health_hook_test.go Make alloc health watcher a postrun hook rather than shutdown hook 2018-12-06 12:30:31 -08:00
migrate_hook.go client: Unify handling of previous and preempted allocs 2018-12-11 13:12:35 +01:00
testing.go allocrunner: Test alloc runners should include a noop migrator 2018-12-11 13:12:35 +01:00
upstream_allocs_hook.go client: Unify handling of previous and preempted allocs 2018-12-11 13:12:35 +01:00
util.go allocrunnerv2 -> allocrunner 2018-10-16 16:56:56 -07:00