Capacity Modelling

Arithmetic before load tests, and headroom for failure as well as peak.

6Questions
12Flashcards
3Terms
1Deliverables
Questions

6 to work through

  1. intermediate Multiple choice

    Alibaba reported a peak of 583,000 order creations per second during Singles' Day in 2020. Suppose one promoted item accounts for 0.5% of those orders and its stock is held in a single row. Roughly how many updates per second does that row have to absorb?

    2 min answer
  2. intermediate Multiple choice

    You run in three availability zones and must survive losing one. What is your maximum normal utilisation and why?

    2 min answer
  3. intermediate Multiple choice

    Zoom's CEO wrote on 1 April 2020 that maximum daily meeting participants went from roughly 10 million at the end of December 2019 to more than 200 million in March 2020. For any platform absorbing a 20× demand rise over three months rather than three minutes, which capacity decision does the slower surge force that the fast one does not?

    3 min answer
  4. advanced

    A compute platform must plan accelerator capacity where lead times are months, demand is uncertain, and jobs vary from minutes to weeks. How should the capacity model be built?

    2 min answer
  5. advanced

    A game hosts a scheduled in-world event for 30 million concurrent players. How should matchmaking, instance allocation, pre-scaling, login queues and degradation be planned, and what is rehearsed?

    3 min answer
  6. advanced

    A training cluster has 512 NVIDIA H100-class GPUs in 64 eight-GPU nodes and the scheduler reports 96 GPUs free. Roughly how much collective bandwidth per GPU does a new 64-GPU job get, and what should the capacity report say instead of "96 GPUs free"?

    3 min answer
Performance & Capacity Engineering

Neighbouring topics

Performance & Capacity

General material on performance and capacity engineering.

6 quiz 12 cards 11 terms

Latency

Distributions rather than averages, and the floors physics imposes.

3 quiz 8 cards 3 terms

Throughput

Work completed per unit time, and why it trades against latency.

6 quiz 12 cards 4 terms

Concurrency

Operations in flight, and the limits that are the real capacity ceiling.

4 quiz 6 cards 3 terms

Queueing Theory

Why latency explodes as utilisation approaches capacity.

4 quiz 7 cards 4 terms

Little's Law

L = λW, and the pool sizes it computes directly.

4 quiz 12 cards 2 terms

Bottleneck Analysis

Finding the constraint, and expecting a second one behind it.

5 quiz 11 cards 3 terms

Tail Latency

p99 behaviour, amplification across fan-out, and hedged requests.

4 quiz 7 cards 5 terms

Load Testing

Realistic data, realistic mix, and a ramp rather than a step.

5 quiz 12 cards 4 terms

Stress Testing

Pushing past target to learn what breaks first and how it fails.

3 quiz 9 cards 3 terms

Soak Testing

Long runs that surface leaks and slow degradation.

4 quiz 12 cards 2 terms

Horizontal vs Vertical Scaling

Scale out for stateless, scale up first for stateful.

4 quiz 8 cards 2 terms

Caching for Performance

Layer choice, hit ratio as a first-class metric, and cold-cache recovery.

5 quiz 11 cards 4 terms

Database Performance

Plans, indexes, contention and the pool in front of the database.

6 quiz 12 cards 4 terms

Connection Pooling

The most common hidden ceiling, and the metric nobody collects.

4 quiz 8 cards 3 terms

Network Performance Tuning

Keep-alive, compression, payload size and round-trip elimination.

4 quiz 9 cards 3 terms

Performance Budgets

Targets enforced in CI so regressions fail the build.

4 quiz 10 cards 2 terms

Profiling & Optimisation

Measuring before optimising, and optimising the dominant term.

3 quiz 9 cards 3 terms

Peak Event Readiness

Freeze, pre-scale, shed order, warm caches and rehearse.

6 quiz 13 cards 4 terms