If Target Servers Grow Tenfold, Does the Deploy Control Server Need to Grow Tenfold Too?
Going from 1,000 to 10,000 targets, size the control server by persistent connections and heartbeats, concurrent jobs, and who actually sends the artifacts, not by target count. Why the same 200 GB needs ten times the bandwidth at 200 servers per batch as at 20, and three scale tests.
"We deploy to 1,000 servers this year and 10,000 next. Should we budget ten times the control server too?"
Target count alone doesn't give you a quote. The heartbeats 1,000 servers send in steady state, the jobs that run concurrently once a deploy starts, and the artifacts each server downloads all consume different resources. Which of those pass through the control server also depends on the architecture.
Deploy control server capacity doesn't scale linearly with target count. Size it separately for steady-state connections and heartbeats, concurrent jobs during a deploy, and whoever actually sends the artifacts.
What is the load when nothing is being deployed?
Steady-state load is the number of persistent connections and the heartbeat rate. Suppose each agent keeps one connection open and sends a heartbeat every 30 seconds. With evenly spread send times, 1,000 servers means 1,000 connections and about 33 heartbeats per second on average. 10,000 servers means 10,000 connections and about 333 per second. That's the capacity you need while no deploy is running. Kubernetes likewise records node heartbeats as individual Lease updates.
During a deploy, how does batch size change bandwidth?
Deploy time needs a different calculation. Compare two plans in which the same 1,000 servers each download one 200 MB file. No cache, no retransmission, and each batch must finish transferring within 60 seconds.
| Plan A | Plan B | |
|---|---|---|
| Servers downloading at once | 20 | 200 |
| Total batches | 50 | 5 |
| Data per batch | 4 GB | 40 GB |
| Average throughput needed in that 60 s | ~66.7 MB/s | ~666.7 MB/s |
| Total data transferred | 200 GB | 200 GB |
Both plans move the same total. Plan B needs roughly ten times the bandwidth to send each batch in the same window. These are interval averages in decimal units. Instantaneous peaks and protocol overhead come on top. (The server setup is a hypothetical example for illustration.)
Now look at the diagram and ask who sends those 200 GB. If each server pulls directly from an internal repository, the repository's egress and the target network carry most of the load. If the control server relays the files too, its network has to grow as well. If artifacts are pre-staged per site, job assignment and result recording may become the first bottleneck during the deploy. Separating the management API from the file path is drawn in Delivering deploy jobs without opening a new inbound port.
Which three scenes should a scale test cover?
Split the scale test into three scenes. In steady state, measure persistent connections and heartbeat throughput. During a scheduled deploy, measure concurrent jobs and artifact egress. Right after the control server recovers, measure job assignment latency while agents reconnect all at once. You can also grow target count while keeping the concurrency limit where it is. In that case, the number that belongs in the quote next to it is the time allowed to finish the whole rollout.
- #deployment
- #infrastructure
- #capacity-planning
- #architecture
- #cost