S4 · Lesson 39 · Warehouse-scale computers
Data centers as one computer, PUE, energy proportionality, tail latency, failures and cost of ownership
A large internet service runs on a warehouse of tens of thousands of servers that behaves like one enormous computer. Its architecture questions are quantitative, but the quantities are new: dollars per month of electricity, the fraction of power lost to cooling, how much power a server burns doing nothing, how often some server somewhere fails (several times a day), and how one slow machine out of a hundred can make most user requests slow. Luiz Barroso and Urs Hölzle's work at Google framed these questions, and their answers shaped how servers, networks and software are designed.
- Energy efficiency (work per watt, relative to a fully loaded server) against utilization, when a server draws a fraction i of its peak power while idle: .
- Servers in large services typically run between 10% and 50% utilization. With i = 0.5, a server at 30% load does its work at only 46% of its peak efficiency.
- An energy-proportional server (i near 0) would be efficient at every load. Lower i to see how much is at stake.
Predict
A user request fans out to 100 servers and must wait for all of them. Each server is slow (over a second) 1% of the time, independently. What fraction of user requests are slow?
= 63%. A rare slowdown on one machine becomes the common case once a request touches enough machines, so services fight the tail: they send backup requests after a short wait, cancel the slower duplicate, and design for the 99th-percentile latency of each server, not its average.
Name it
Power and cooling
- PUE (power usage effectiveness) = total facility power / IT equipment power. Older facilities ran near 2; efficient ones run near 1.1.
- Server power at utilization u: , with often 30 to 60% of peak.
- Monthly energy cost = average IT power × PUE × hours × price.
Total cost of ownership
TCO = capital expenses (buildings, power and cooling equipment, servers), amortized over their lifetimes (often 10 to 15 years for the facility, 3 to 5 for servers), plus operating expenses (electricity, staff). Servers usually dominate, so raising utilization lowers the cost of every unit of work.
Failures are routine
With N servers each failing on average every MTTF hours, the facility sees about failures a day. Software replicates data and work, so hardware failures don't stop the service.
The tail at scale
If each of k parallel sub-requests is slow with probability p, the whole request is slow with probability .
Worked example
50,000 servers peak at 300 W and idle at 150 W, running at 30% utilization, in a facility with PUE 1.1, paying 70 dollars per MWh. What's the monthly electricity bill (730 hours)?
Show the solution
- Average server power.
- IT and facility power. IT power is 50,000 × 195 W = 9.75 MW, and with PUE 1.1 the facility draws 10.7 MW.
- Energy per month.
- Bill. At 70 dollars per MWh that's about 548,000 dollars a month.
- Energy proportionality. A fully energy-proportional server would average 90 W at 30% load, cutting the bill by more than half.
Answer the monthly electricity bill is about 548,000 dollars.
Worked example
The same 50,000 servers each have an MTTF of 5 years (43,800 hours). How many fail per day? What efficiency does a server reach at 30% load if it idles at 50% of peak, and at 10%?
Show the solution
- Failures per day. so repairs are a continuous process.
- Efficiency with a 50% idle draw.
- Efficiency with a 10% idle draw.
Answer about 27 servers fail each day; at 30% load the efficiency is 46% with a 50% idle draw and 81% with a 10% one.
Worked example
A search request fans out to 100 leaf servers and must wait for all of them. Each leaf is slow (over a second) 1% of the time. How often is the whole request slow, and with 2000 leaves?
Show the solution
- 100 leaves. of requests wait on at least one slow leaf.
- 2000 leaves. Essentially all requests do.
- What services do. A rare slowdown on one machine becomes the common case at scale, which is why services send hedged requests, use backup replicas and cancel the stragglers.
Answer 63% of requests are slow with 100 leaves, and essentially all of them with 2000.
Check
A data center draws 12 MW in total while its IT equipment draws 8 MW. What's its PUE?
Check
A server peaks at 200 W and idles at 0.3 of that. What does it draw at 0.5 utilization?
Write units the way you normally would: 1.5 W, 1500 mW and 0.0015 kW are the same answer.
Check
A server idles at 0.2 of its peak power. At 0.3 utilization, what's its energy efficiency relative to full load?
Check
10000 servers average 180 W in a facility with PUE 1.5. At 100 dollars per MWh, what does a 730-hour month of electricity cost, in dollars?
Check
A request fans out to 20 servers and waits for all. Each is slow with probability 0.01, independently. What fraction of requests are slow?
Check
A data center has 20000 servers, each with an MTTF of 3 years. How many fail per day, on average?
Check
10000 servers peak at 300 W and idle at 0.5 of peak, running at 0.5 utilization in a facility with PUE 1.1; electricity costs 50 dollars per MWh.
(a)
What does each server draw?
Write units the way you normally would: 1.5 W, 1500 mW and 0.0015 kW are the same answer.
(b)
What is the monthly electricity bill, in dollars (730 hours)?
Check
A request fans out to 100 servers, each slow with probability 0.001. Separately, a facility has 100000 servers with an MTTF of 5 years.
(a)
What fraction of requests are slow?
(b)
How many servers fail per day?
Check
A server's idle power is a fraction i of its peak; it runs at utilization u.
Step 1
What fraction of peak power does it draw?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What is its work per watt, relative to running flat out?
Explain why
Why does energy proportionality matter so much more for warehouse-scale computers than for a laptop?
A laptop mostly sleeps or runs a single user's bursts, and its power-saving modes switch whole components off when idle. Data center servers almost never sit fully idle, because they must answer requests within milliseconds, but they rarely run near full load either: services are provisioned for peak traffic and spread load for reliability, so typical utilization is 10 to 50%. A server that draws half its peak power at zero load spends most of its energy in that idle floor, doing its work at a fraction of its peak efficiency. Across tens of thousands of servers and the cooling that comes with them, that idle floor is millions of dollars a year, so servers whose power falls in proportion to their load save more than almost any other improvement.
Practice
Keep practicing
11 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.