986fde0f5a
This creates a new buffered channel and goroutine on the allocrunner for serializing updates to allocations. This allows us to take updates off the routine that is used from processing updates from the server, without having complicated machinery for tracking update lifetimes, or other external synchronization. This results in a nice performance improvement and signficantly better throughput on batch changes such as preempting a large number of jobs for a larger placement. |
||
---|---|---|
.. | ||
interfaces | ||
state | ||
taskrunner | ||
alloc_runner.go | ||
alloc_runner_hooks.go | ||
alloc_runner_test.go | ||
allocdir_hook.go | ||
config.go | ||
health_hook.go | ||
health_hook_test.go | ||
migrate_hook.go | ||
testing.go | ||
upstream_allocs_hook.go | ||
util.go |