hashicorp / hashicorp/nomad

Option to keep a minimum instance count when doing rolling updates.

Open
#8,538 10 comments 22 reactions 0 assignees View on GitHub
stage/accepted theme/deployments type/enhancement
Dominant language
Go
Stars
17k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
105

Description

When doing a rolling upgrade operators should have an option to ensure the instance count doesn't go bellow the value stipulated. This would be accomplished by bringing the next instances up before putting down old ones.
Today the only behavior is so that if my instance count is 3 and I do a rolling update with max_parallel=1, for a moment I'll be left with only 1 instance ready.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing Nomad's rolling upgrade behavior and how max_parallel controls instance replacement. Define how a minimum instance count should be preserved while bringing up replacement instances, then verify that a three-instance update with max_parallel=1 never drops below the stipulated ready count.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
distributed-systems, infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.