S439 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

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: ui+(1−i)u.
  • 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?

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: P=Pidle+(Ppeak−Pidle)u, with Pidle 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 N×24/MTTF 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 1−(1−p)k.

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
  1. Average server power. 150+150×0.3=195W
  2. 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.
  3. Energy per month. 10.725MW×730h=7,829MWh
  4. Bill. At 70 dollars per MWh that's about 548,000 dollars a month.
  5. 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
  1. Failures per day. 50,000×24/43,800=27 so repairs are a continuous process.
  2. Efficiency with a 50% idle draw. 0.30.5+0.5×0.3=46%
  3. Efficiency with a 10% idle draw. 0.30.1+0.9×0.3=81%

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
  1. 100 leaves. 1−0.99100=63% of requests wait on at least one slow leaf.
  2. 2000 leaves. Essentially all requests do.
  3. 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°.

Explain why

Why does energy proportionality matter so much more for warehouse-scale computers than for a laptop?

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.