skip to content

When a bad configuration change starts failing hosts in a 4,000-host fleet, how does it spread under controller push versus agent pull, how is each stopped, and how do you establish which host is where?

level: seniorimportance: should knowfreq 38%

answer

  1. what paces the change
  2. stop the run or fix the source
  3. the fix travels the same schedule
  4. a change can cut its own path
  5. per-host revision, result and time

basics

~20 s

Push spreads at the controller's pace and stops when its run stops. Pull spreads on the agents' schedule and stops when the server serves something else. Neither undoes changed hosts, so a per-host record of revision and result establishes state.

solid answer

~50 s

Under push the controller paces the change: unbatched it can reach everything fast, batched with a pause on failure it stops early, and stopping the run halts it. Under pull nothing central paces it. With 4,000 hosts on an evenly spread 20-minute interval, about 200 hosts a minute take the bad revision, so the stop is changing what the server serves, and that fix travels on the same schedule. Stopping undoes nothing already applied, and a change that broke the firewall or SSH can cut hosts off from any fix sent that way, leaving a console. Afterwards the fleet is not simply failed: some hosts are on the new revision, some partly applied, some untouched and some unknown. I establish that from a per-host record of revision, result and time, treating silent hosts as unknown.

go deeper

for a junior

Recall that stopping a change is different from undoing it, and that hosts can be left on different revisions when a run stops partway through a fleet.

for a middle

Explain what paces a change in each model, and work out how many hosts an evenly spread interval exposes per minute. Say how a stop works in each case.

for a senior

Demonstrate the incident order: stop the source, capture a per-host record, sort hosts into groups including partly applied and unknown, then deliver the fix in batches. Name changes that cut their own delivery path.

for a principal

Treat pacing, pause thresholds and per-host reporting as things a platform provides by default rather than each team's habit. Weigh rollout speed against how many hosts you accept losing before a stop.

## Two different shapes of spread A **bad configuration change** is one that breaks hosts, either at once or only when something later restarts. How far it gets depends on what paces it. The numbers here are one worked scenario: 4,000 hosts, agents on an evenly spread 20-minute interval, and a person who reacts five minutes after the first failure. - **Agent pull.** An agent is a service on each host that fetches its configuration from a server. Nothing paces the change except that schedule. Hosts reach the server at 4,000 / 20 = 200 a minute and each takes whatever is being served, so about 1,000 hosts have it after five minutes, and every running host has it within one interval. - **Controller push.** A controller logs in to hosts and applies the change, so it sets the pace. Unbatched, it reaches hosts as fast as its parallel connections allow, which can beat the agents. With batches of 200 and a pause on failure, a first-batch failure stops at about 200 hosts. That costs speed: 4,000 / 200 is 20 batches, and at five minutes each the rollout takes 100 minutes. These are usual shapes. A pull fleet can be staged if the server offers a new revision to one group of hosts first, and an agent fleet signalled to run now loses the protection of its interval. Neither model is safe by nature; pacing is something you have to build. ## How each is stopped | Question | Controller push | Agent pull | |---|---|---| | First move | Stop the run on the controller | Change what the server serves | | When it takes effect | At once for hosts not yet reached | On each host's next run | | What it leaves | Changed hosts stay changed; in-flight hosts may stop partway | Changed hosts stay changed until their next run | | Trap | Another schedule or person can start a new run | A pause sent through configuration travels no faster than the change | Four points decide how the stop goes: - **Stop the source first.** Under pull, hosts that have not run yet then take the good revision and skip the bad one. Hosts that were off take whatever is served when they return, so keep it correct. - **Pausing has a price.** Paused agents miss every change, including security fixes, so a pause needs an owner and an end. - **Reverting is not undoing.** A previous revision restores only what it states. Something the bad revision created that the previous one never mentioned stays in place, so a corrective new revision is often the better move. - **A change can cut its own delivery path.** A bad firewall rule, name-resolution setting or trust store can stop an agent reaching its server or stop SSH accepting the controller. Those hosts need a console or another out-of-band route. ## What state the fleet is in afterwards A run that failed is not a description of a fleet. After a stop, hosts fall into groups: 1. **On the new revision and looking healthy.** Some may still break at their next restart. 2. **On the new revision and visibly broken.** 3. **Partly applied.** Some steps ran before the failure, so the host matches neither revision. 4. **Still on the old revision.** The change never reached them. 5. **Unknown.** Off, unreachable or silent. These must not be counted as group 4. ## Establishing which host is where You need a **per-host record**: host, revision last attempted, result and time. Push gets it from the run's output, which has to be kept rather than left in a terminal. Pull gets it from agents reporting to a central store. Then: - **Compare report age with the interval.** A host silent for more than a couple of intervals is unknown, and may be one the change cut off. - **Check health apart from the run's result.** A run can succeed while the service it configured is down, so join revision data to service health. - **Do not infer from the server.** What it serves is what hosts should take, not what they have. ## Recovering in order 1. Stop the spread at its source. 2. Capture the per-host record so the groups are known. 3. Choose between the previous revision and a corrective one. 4. Deliver it to a small group, confirm health, then widen in batches. 5. Handle unknown and cut-off hosts separately, through a console where needed. The batches are not optional here: a rushed fix is a change too, and it can spread the same way.

  • How do you stage a configuration change under agent pull, where no controller paces it?
    Pace it at the source. The configuration server decides which revision each host receives, by host group or a stable percentage, so a small group gets the new revision first. Widen it after health checks pass. A host only ever sees what it is served, so the pacing lives on the server, and it needs per-host reports to judge each stage.
  • What should make a batched fleet-wide configuration run pause automatically?
    A failure threshold per batch, plus a health signal independent of the run, because a run can succeed while the service breaks. Count unreachable hosts separately, since routine outages would otherwise trip the threshold. Set too low, it pauses on noise and gets disabled; set too high, the whole batch can break before it fires.
  • Why is a host that has stopped reporting more worrying during a bad change than one that reports failure?
    A failing report proves the host is on, reachable and able to run. Silence could mean it is off, or that the change broke the agent's route, its identity or the agent itself, and then no fix will arrive through that channel. So silent hosts form their own group and are checked another way.

  • Pull is safe because agents apply changes slowly, so a bad change cannot reach the whole fleet.
  • Killing a push run undoes what it had already done on the hosts.
  • After a failed run, every host has either fully succeeded or fully failed.
  • Reverting to the previous revision restores every host to exactly how it was.
  • A host with no report can be assumed to still be on the old revision.
  • The revision the server currently serves tells you what the hosts are actually running.