17/41
Part 3 of 7 · SizingLearn and do

As filler, the day's work clears with 10 hours to spare

There's a cheaper fleet than a dedicated one: the idle hours of the interactive fleet.

A 100-replica interactive fleet, one dayHoursBusyIdle replicasIdle replica-hours
peak885%158 × 15 = 120
off-peak1647.5%52.516 × 52.5 = 840
total960

Now run the same work as filler. Assume 100 replicas serve interactive traffic. They are 85% busy for 8 peak hours and 47.5% busy for the other 16.

That averages (8 × 85 + 16 × 47.5) ÷ 24 = 60% busy. The idle capacity is 15 replicas at peak and 52.5 off-peak, so the day has 960 idle replica-hours. Batch needs 417.

Take the worst case: the whole day's work lands at the start of the peak.

  • The 8 peak hours drain 8 × 15 = 120 replica-hours.
  • The other 416.7 - 120 = 296.7 take 296.7 ÷ 52.5 = 5.7 off-peak hours.
  • The backlog clears 8 + 5.7 = 13.7 hours after it arrived.

That leaves about 10 hours of window, on GPUs that were already paid for. That's the discount, in arithmetic.

One customer's batch of 100,000 requests, Anthropic's per-batch maximum, costs 400 ÷ 4,000 + 2,000 ÷ 40,000 = 0.15 replica-seconds per request, so 15,000 replica-seconds. Ten idle replicas clear it in 15,000 ÷ 10 = 1,500 seconds, 25 minutes. So finishing most batches within an hour is easy when the backlog ahead of them is small.

In the editor, write hours_to_clear(work, idle). idle[h] is how many replicas the interactive fleet leaves free in hour h after the work arrives. Return the hours until work replica-hours are done, with a fractional last hour, or None if they don't fit.