hashicorp / hashicorp/nomad

when starting multiple tasks using `consul lock` should be an option

Open
#6,367 6 comments 4 reactions 0 assignees View on GitHub
stage/needs-discussion theme/deployments type/enhancement
Dominant language
Go
Stars
17k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
105

Description

To prevent a thundering herd it would be great if nomad supported `consul lock` in some fashion so that I could upgrade a hundred jobs in a controlled fashion. A key feature would be to specify the key so that you could lock _across_ different jobs (as well as within a job/group if desired).

I'm aware of `splay` but that's a sub-optimal/nondeterministic solution. Is `1h` long enough? What if my cluster can handle three simultaneous job upgrades and doing all of them would take 20 minutes?

If the `pre_hook`, `post_hook` feature was implemented then maybe a user could hack something together using them. Or this feature could make use of them? My 2 cents on implementation. 😉

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.