Turn Off One Node in a 3-Node HA Cluster: What Must Keep Working?
A 3-node HA acceptance test does not end when the home page loads. After stopping one node, measure new logins, Git fetches, in-flight builds and new deploy requests separately, and confirm a repeated deploy request landed on its target only once.
During acceptance testing, we switched off one node. Refreshing a browser that was already logged in brought the home page right back. But what if, at that moment, another user logs in fresh, a developer pulls files from Git, and an operator approves a deployment? The home page alone tells you nothing about those three outcomes.
The acceptance bar for 3-node high availability is not "the screen still loads with one node down." It is how many seconds it takes for login, Git fetches, in-flight builds and new deployments to each come back, and in what state.
If etcd keeps quorum, does the service stay up?
etcd keeping quorum means the consensus store can still make decisions. It does not mean every business path on top of it is alive. A three-member etcd cluster keeps the majority it needs as long as two members can talk. The authentication service behind login, the volume holding Git data, the runner that was executing a job, and the load balancer users connect through all have to be checked on their own paths. If the design claims to survive the loss of a physical host, write down which host each of the three VMs sits on before the test.
After the node goes down, what do you check, and how fast?
Run a build in the test environment and record the hash of the commit you just made. From the moment you stop the node hosting the runner, without draining anything first, measure the four items below. The times are example targets that the buyer and operations team might agree on.
| Function | Action after the failure | Example pass criterion |
|---|---|---|
| New login | Log in from a fresh browser session and open a project that requires permission | Succeeds within 60 seconds |
| Git fetch | In an empty working directory, fetch the pre-failure commit and open a file | Same hash and file confirmed within 120 seconds |
| In-flight build | Open the run number of the interrupted runner and trace its retry history | Within 5 minutes, an interrupted or retried state is visible and the final result can be found |
| New deploy request | Submit a test deployment, then resend the same request as if the response was lost | Acceptance confirmed within 120 seconds; applied to the test target exactly once |
Why judge in-flight builds and new deploys differently?
Because a build can safely run again, while a deployment may already have been applied. When a runner disappears, its build may restart from scratch in a new workspace, and the on-call engineer needs to see how the retry relates to the original. A deploy request is different: the first execution may already have reached the target server. Here you compare the run record and the target's actual version using the same request ID. Kubernetes itself states that a Job can, under certain conditions, start the same program twice. Designing so the same request never runs twice is covered in when the deploy finished but the response was lost.
In the last column of the test report, write what the user has to do again: "Login recovers automatically, Git needs one retry of the same request, the build continues as a new attempt, the deployment shows its existing result." That turns the single line "3-node HA" into a concrete statement of how much real work is interrupted. What to replicate and what to keep as backup is covered in DR design for air-gapped environments. (Time targets and version combinations here are examples for acceptance testing.)
- #on-prem
- #high-availability
- #sre
- #infrastructure
- #deployment