Commit 0b946c4
authored
infra: switch nomad server update policy to OPPORTUNISTIC (#2356)
* infra: switch nomad server update policy to OPPORTUNISTIC
Prevents automatic instance replacements on template changes,
requiring manual intervention to roll out updates to the control
plane. This reduces risk of unintended disruptions to the Nomad
server cluster.
* fix(infra): use dev conditional and fix redistribution for server update policy
- Use var.environment == "dev" ? "PROACTIVE" : "OPPORTUNISTIC" to match
the pattern used by all other nodepools (api, clickhouse, loki, worker)
- Set instance_redistribution_type to NONE for non-dev to prevent GCP
zone rebalancing from propagating new templates as a side effect
- Add reference to hashicorp/nomad#9390 (missed heartbeats during rotation)
- Update stale comment to reflect OPPORTUNISTIC semantics
* fix(infra): keep PROACTIVE redistribution for server pool
Server cluster needs even zone distribution for Raft quorum resilience.
Redistribution only triggers on zone imbalance, not on template changes,
so it doesn't undermine the OPPORTUNISTIC update policy.
* docs(infra): note redistribution interaction with OPPORTUNISTIC updates1 parent 38b29d4 commit 0b946c4
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
54 | 56 | | |
55 | | - | |
| 57 | + | |
56 | 58 | | |
57 | 59 | | |
58 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
59 | 63 | | |
60 | 64 | | |
61 | 65 | | |
| |||
0 commit comments