The Helmsman of the Data Center – From Borg to Kubernetes and the Art of Desired State
Cloud Computing · 2026-11-28
Fully AI-generated article (no prior review).
🎧 Listen to this article
The Hook
In April 2015, at the EuroSys systems conference in Bordeaux, Google presented a paper with the sober title "Large-scale cluster management at Google with Borg." It described a system that had long been mostly a matter of speculation – on its publication, the Kubernetes blog called Borg Google's "long-rumored" cluster manager. The very first sentence of the abstract conveys the scale: Borg is a cluster manager that runs hundreds of thousands of jobs, from many thousands of different applications, across a number of clusters, each with up to tens of thousands of machines.
Back in 2014, Google had already released another project as open source: Kubernetes. The name comes from Greek and means helmsman or pilot. Many of the developers working on Kubernetes had previously worked on Borg, and the Kubernetes blog post accompanying the Borg publication states explicitly that Kubernetes traces its lineage directly from Borg.
So anyone who starts a container in a Kubernetes cluster today is using ideas that matured over more than a decade in Google's data centers. This article follows that lineage – and shows why perhaps the most important idea in Kubernetes is not the container but the desired state.
The Core Concept: Managing Intentions, Not Machines
A classic data center is machine-oriented: Which server is free, which one runs the ordering service, what happens when it fails? Humans distribute programs onto machines.
A cluster manager like Borg reverses this perspective. The user describes what should run – for example, "50 instances of this program, each with two CPU cores and four gigabytes of memory, at high priority" – and the system decides where that happens. Burns, Grant, Oppenheimer, Brewer and Wilkes, several of whom worked on Borg, Omega and Kubernetes, summarize the shift in their 2016 retrospective in ACM Queue: containerization transforms the data center from machine-oriented to application-oriented. Management APIs built around containers rather than machines shift the "primary key" of the data center from machine to application.
Two fundamental questions follow:
- Placement: How do you distribute many tasks of different sizes across machines so that as little capacity as possible goes unused?
- Control: How do you ensure that what actually runs continuously matches what should run – even when machines fail, software crashes and users change their minds?
Borg gave a highly refined answer to the first question. Kubernetes made the answer to the second question the organizing principle of the entire system.
Example 1: Borg – Cells, Priorities and a Master That Is Allowed to Fail
Borg organizes machines into cells. According to the paper by Verma, Pedrosa, Korupolu, Oppenheimer, Tune and Wilkes, the median cell size – excluding test cells – is about 10,000 machines; some cells are much larger. Very different workloads run side by side in each cell: user-facing services that should never go down, and batch jobs that merely have to finish eventually.
So that both can coexist on the same machines, Borg defines non-overlapping priority bands, in decreasing order: monitoring, production, batch and best effort (also called "testing" or "free"). The paper groups monitoring and production together as "prod." In a representative cell, prod jobs are allocated about 70 % of the total CPU resources but account for only about 60 % of actual CPU usage; for memory the figures are about 55 % of allocation and about 85 % of usage. The gap between allocation and usage is not a flaw but an opportunity: Borg reclaims such unused resources to run much of the less important work on them.
The architecture of a cell has two parts:
- The Borgmaster is logically a single process but is replicated five times. Its state lives in a highly available, Paxos-based store (on Paxos, see How Machines Come to Agree: Distributed Consensus from FLP to Paxos to Raft) on the replicas' local disks. If the active master fails, a new one is elected; according to the paper this typically takes about 10 seconds, and up to a minute in large cells.
- The Borglet is a local agent on every machine. It starts and stops tasks, restarts them if they fail and manages local resources.
Perhaps the most important design decision appears in the section on availability: already-running tasks keep running even if the Borgmaster or a task's Borglet goes down. A Borglet continues normal operation when it loses contact with the Borgmaster – even if all master replicas fail, running services stay up. The control plane can therefore fail without dragging down the data plane – as long as nothing new needs to be scheduled or rescheduled after a machine failure. For the Borgmaster itself, the paper reports an availability of 99.99 % achieved in practice.
Example 2: Placement – Tetris With Ten Thousand Machines
When a new task needs to be scheduled, the Borg scheduler works in two steps:
| Step | Question | Result |
|---|---|---|
| Feasibility checking | Which machines meet the task's constraints and have enough "available" resources? | Set of candidate machines |
| Scoring | How "good" is each of these machines? | Ranking; the best machine wins |
There are two classic extremes for scoring. Worst fit (in Borg a variant called E-PVM) spreads load as evenly as possible across all machines, leaving headroom everywhere for load spikes – but also leaving many half-empty machines on which large tasks no longer fit. Best fit fills machines as tightly as possible and keeps others completely empty – it packs efficiently but penalizes any misestimation of resource requirements. Borg uses a hybrid model designed above all to avoid "stranded" resources: resources that go unused because another resource on the same machine is exhausted (for example, free memory on a machine with no free CPU). According to the paper, this hybrid model packs about 3–5 % more efficiently than best fit for Google's workloads.
Three to five percent sounds small. In a median-sized cell of around 10,000 machines, however, it would correspond roughly to a few hundred machines – provided the better packing efficiency translates directly into machine count.
Example 3: Why You Throw Everything Into One Pot
The obvious alternative would be to run critical services and batch jobs on separate machines. The Borg team quantified this alternative by taking real workloads (Borg checkpoints from 15 cells) and, in a simulator, repeatedly repacking them onto fewer and fewer machines until they no longer fit (cell compaction). The result: segregating prod and non-prod work would require 20–30 % more machines in the median cell. Subdividing large cells into smaller ones would also require more machines, and splitting by user even considerably more: depending on the threshold, one would need 2 to 16 times as many cells and 20–150 % additional machines. The authors' conclusion, in essence: pooling resources significantly reduces costs.
I am of the opinion that the reason is the same one that makes a large shared warehouse more efficient than many small ones: fluctuations even out, and the unused reserves of some are used by others. The price: isolation now has to be enforced on every single machine – through priorities, preemption and process-level resource isolation. I am of the opinion that there is a tension here with the principle of limiting the blast radius (see The Smallest Possible Damage – Cells, Shuffle Sharding and the Art of Limiting the Blast Radius): pooling saves machines, separation limits damage. Borg deliberately keeps each cell independent of the others to limit correlated operator errors and failure propagation; according to the paper, these goals – not scalability limits – are the primary argument against even larger cells.
Example 4: Omega – the Experiment With Shared State
With more and more special requirements, a monolithic scheduler becomes hard to extend; the Omega paper also cites head-of-line blocking and limited scalability as problems. (The 2015 Borg paper, by contrast, stresses that scalability had not been a problem for Borg in practice.) In 2013, at EuroSys in Prague, Schwarzkopf, Konwinski, Abd-El-Malek and Wilkes described three architectures:
- Monolithic: a single, centralized scheduling algorithm for all jobs.
- Two-level (like Apache Mesos): a resource manager offers resources to multiple independent scheduler frameworks; offered resources are locked for others in the meantime – a pessimistic form of concurrency.
- Shared state (Omega): every scheduler sees the entire cell state, works on a private copy and writes its decisions back via a transaction. Conflicts are resolved with optimistic concurrency control: if two schedulers want the same resource, at most one of the commits succeeds.
In the paper's simulations (using a simplified simulator and synthetic workloads), Omega achieved wait times comparable to a monolithic scheduler with multiple scheduling paths and – unlike the simulated two-level model, in which jobs were abandoned – managed to schedule all jobs. The authors also report that conflicts are rare under realistic conditions.
According to the 2016 Queue retrospective, Omega was primarily meant to improve the software engineering of the Borg ecosystem. Apart from a central, Paxos-based store that holds only passive state and enforces optimistic concurrency control, Omega has no central component; the other components access this store directly. Many of Omega's ideas, including multiple schedulers, were later folded into Borg.
Example 5: Kubernetes – Desired State, Observed State and Choreography
Kubernetes is Google's third container-management system and – unlike Borg and Omega – open source. From Omega it adopts a shared persistent store at its core. Unlike in Omega, however, components do not access it directly but exclusively through a domain-specific REST API. Kubernetes also draws lessons from specific weaknesses of Borg. Burns et al. name, among others:
| Borg | Kubernetes | Why |
|---|---|---|
| Alloc (reserved resources on a machine for one or more tasks) | Pod | Same idea, as the central unit |
| Jobs as groupings of identical tasks, tasks numbered by index | Labels and label selectors | Flexible, multi-dimensional grouping |
| One IP address per machine; ports must be scheduled as a resource | One IP address per pod | The network address belongs to the pod rather than the machine |
The real core, however, is the reconciliation loop. A Kubernetes controller compares a desired state (for example: how many pods should match a label selector?) with the observed state and takes steps to bring the two together. The Kubernetes documentation explains this with a thermostat: the set temperature is the desired state, the actual room temperature is the current state, and the thermostat turns equipment on or off to bring the current state closer to the desired state.
Burns et al. emphasize the decisive advantage: because all action is based on observation rather than a state diagram, reconciliation loops are robust to failures and perturbations. When a controller fails or restarts, according to the authors it simply picks up where it left off – it observes the world anew instead of having to remember a half-completed step.
This leads to an architectural principle the authors call choreography: Kubernetes is a combination of microservices and small control loops rather than a centralized orchestration system. According to the documentation, each controller manages a particular aspect of cluster state. A centralized orchestration system may be easier to build at first, they argue, but tends to become brittle and rigid over time. The documentation puts it more pointedly: Kubernetes is not a mere orchestration system but eliminates the need for orchestration. And because controllers can fail, Kubernetes is, according to the documentation, designed to allow for exactly that.
Example 6: Borg Four Years Later – What the 2019 Data Show
In 2020, Tirmazi, Barker, Deng, Haque, Qin, Hand, Harchol-Balter and Wilkes published at EuroSys an analysis of a new Borg trace: eight cells over the month of May 2019, compared with an earlier trace of a single cell from 2011. Some findings:
- Extreme inequality: the largest 1 % of jobs account for 99.2 % of the CPU load (99.1 % of the memory load); the largest 0.1 % still account for 93.1 % (92.6 %). The authors call these jobs "hogs." I am of the opinion that a few huge jobs and very many small ones place different demands on schedulers.
- Higher utilization: median overall utilization rose by 20–40 % for CPU and 3–30 % for memory compared with 2011. Allocations are consistently well above 100 % of capacity – Borg deliberately overcommits.
- Vertical autoscaling: Borg now supports automatic vertical scaling through a system called Autopilot, and the authors assess it as effective.
Remarkable is a qualification the authors make themselves: at a coarse level – hourly averages across tens of thousands of machines – Borg has not significantly increased the fraction of machine resources actually consumed since 2011; what has increased above all is how much work fits on the same capacity. Allocation and consumption still diverge widely: according to the paper, the production tier uses only about 30 % of the CPU allocated to it.
Framework: Five Questions for Any Declarative System
Whether a Kubernetes operator, a Terraform module or your own control service – the lessons can be phrased as review questions:
- Is the desired state explicit – described in machine-readable form, rather than merely as a script that once did something?
- Does the controller act on observation – does it compare desired and observed state afresh on every pass?
- Does the data plane survive the failure of the control plane?
- Do you group via labels (team, environment, version) rather than names and numbers?
- How large is the gap between allocation and consumption – and who uses it?
The Limits
Burns et al. themselves name open problems. The most brainpower, ink and code, they write, has gone into managing configurations; they recommend a simple, data-only format such as JSON or YAML rather than ever more powerful configuration languages. Almost no system captures dependencies between services, so that even common cases are nearly impossible to automate at the infrastructure level.
In addition: the efficiency figures come from Google's workloads. I am of the opinion that a small company with a handful of services will not automatically recoup the complexity of Kubernetes through the same savings – whereas the principle of desired state pays off almost always.
The Central Takeaway
- Describe rather than instruct. The core of Kubernetes is not the container but the reconciliation loop that continuously compares observed state with a desired state. According to Burns et al., this is exactly what makes such loops robust to failures and perturbations.
- The control plane is allowed to fail. In Borg, tasks keep running even if all Borgmaster replicas fail – but there are then no new jobs, no updates and no rescheduling after machine failures. Running services therefore do not depend on the master; changing them does.
- Pooling saves money – measurably. In Google's data, separating prod and non-prod would have cost 20–30 % more machines in the median cell.
- Identity via labels, not numbers. Pods with their own IP and grouping via labels are direct answers to weaknesses Google experienced in Borg itself.
- Allocation is not consumption. Even in 2019, requested and actually used resources in Borg diverged widely; overcommitment and vertical autoscaling are tools for exploiting this gap.
Cross-References in the Vault
- How Machines Come to Agree: Distributed Consensus from FLP to Paxos to Raft – Paxos and Raft: how replicated control planes such as the Borgmaster agree on a shared state.
- The Smallest Possible Damage – Cells, Shuffle Sharding and the Art of Limiting the Blast Radius – the counterforce to pooling: isolation to limit the blast radius.
- Betting on a Stranger's Code: Firecracker microVMs and the End of the Container-versus-VM Dilemma – how strong the isolation between workloads on the same machine can be.
- The Whisper of Machines: Gossip Protocols, SWIM, and How a Cluster Learns Who Is Still Alive – how a cluster learns which machines are still alive – the precondition for any observed state.
- The Long Tail of Latency: Tail Latency and Why Averages Lie in the Cloud – why shared machines can produce latency outliers.
- The Failure That Stays – Metastable Failures and Why Systems Don't Heal on Their Own After the Storm – when even control loops do not heal a system on their own.
Food for Thought
Take your team's most important operational process – a deployment, a certificate renewal, onboarding a new customer. Is it described as a sequence of steps that someone executes, or as a state that a system continuously establishes? What would happen if this process broke off in the middle of step three?
Fact Check
Automated AI check against primary sources; no human expert review.
80 claims were checked (35 hard facts, 15 quotes or close paraphrases, 11 source attributions, 19 synthesis claims) by a separate checking agent that retrieved the sources itself during this run. 18 passages were corrected or toned down; no claims that were false in the strict sense were found. The most important corrections:
- Kubernetes adopts Omega's shared store but precisely not direct access to it: unlike in Omega, all access goes through a REST API – the draft had blurred this difference.
- The rationale for Borg's cell size was corrected: according to the paper, it is primarily fault isolation and the risk of correlated operator errors that argue against larger cells, not scalability limits.
- An internal contradiction in the section on 2019 was resolved: median utilization rose, while the fraction of resources actually consumed barely increased only at a coarse level of aggregation (hourly averages).
Sources and Further Reading
- Verma, A., Pedrosa, L., Korupolu, M. R., Oppenheimer, D., Tune, E., Wilkes, J. (2015): Large-scale cluster management at Google with Borg. Proceedings of the European Conference on Computer Systems (EuroSys), ACM, Bordeaux. https://research.google/pubs/large-scale-cluster-management-at-google-with-borg/ – PDF: https://research.google.com/pubs/archive/43438.pdf
- Burns, B., Grant, B., Oppenheimer, D., Brewer, E., Wilkes, J. (2016): Borg, Omega, and Kubernetes – Lessons learned from three container-management systems over a decade. ACM Queue 14, pp. 70–93 (January/February 2016). https://research.google/pubs/borg-omega-and-kubernetes/ – https://queue.acm.org/detail.cfm?ID=2898444
- Schwarzkopf, M., Konwinski, A., Abd-El-Malek, M., Wilkes, J. (2013): Omega: flexible, scalable schedulers for large compute clusters. EuroSys 2013, Prague, pp. 351–364. https://research.google/pubs/pub41684/
- Tirmazi, M., Barker, A., Deng, N., Haque, M. E., Qin, Z. G., Hand, S., Harchol-Balter, M., Wilkes, J. (2020): Borg: the Next Generation. EuroSys 2020, Heraklion. DOI 10.1145/3342195.3387517. https://research.google/pubs/borg-the-next-generation/
- Kubernetes documentation: Controllers. https://kubernetes.io/docs/concepts/architecture/controller/ – Overview: https://kubernetes.io/docs/concepts/overview/
- Kubernetes Blog (April 23, 2015): Borg: The Predecessor to Kubernetes. https://kubernetes.io/blog/2015/04/borg-predecessor-to-kubernetes/