CSE Roadmap

Core tier · about 3 hours · 8 parts

Part 8 of 8 · 2 min read

Exercises

Easy

Easy 1: Write an SLI (20 minutes)

Write SLIs for a video upload service in the form good events over total events. Give three.

Done when: three SLIs with their numerators and denominators.

Hint

Say what counts as good for each.

Easy 2: Budget arithmetic (20 minutes)

Compute the error budget in minutes for 99 percent, 99.9 percent and 99.99 percent over 30 days.

Done when: three numbers with the working.

Hint

Minutes in 30 days are 43,200.

Easy 3: Average or percentile (20 minutes)

A service has 200 requests: 190 at 100 ms and 10 at 5 seconds. Compute the average and p95.

Done when: two numbers and one sentence on which is more honest.

Hint

The p95 is the value below which 190 of the 200 fall.

Medium

Medium 1: Little's law (30 minutes)

A service has 500 threads and 2,500 requests per second. A dependency slows 2 percent of requests to 10 seconds. How many extra threads are needed?

Done when: a number with the working shown.

Hint

Slow requests per second times their time gives threads.

Medium 2: Burn a budget (30 minutes)

An SLO is 99.5 percent of requests succeeding over 30 days, at 100 requests per second. Compute the budget in requests. Then find how long a 20 percent failure rate takes to use it all.

Done when: two numbers and a statement of the policy you would set.

Hint

Requests in 30 days are 100 times 2,592,000.

Medium 3: Where to measure (30 minutes)

List three places to measure the response time of a web page and the blind spots of each. Pick one.

Done when: a three-row table and a choice.

Hint

Think of server, balancer and browser.

Hard

Hard 1: SLO set for a product (45 minutes)

Pick a product you know. Write 4 SLIs with SLOs, windows and the error budget policy. Justify each number from user needs.

Done when: a one-page SLO document.

Hint

Start from what the user is trying to do.

Hard 2: Challenge a bad SLO (45 minutes)

An SLO says "100 percent uptime". Write the argument to change it, using budgets, cost and users' last-mile connections.

Done when: a short memo with a replacement SLO.

Hint

Show what each extra nine costs.

Hard 3: Multi-window design (50 minutes)

Design two SLOs for one service with windows of 1 day and 30 days. State what decision each supports and how they trigger different responses.

Done when: a table of windows, targets, decisions and actions.

Hint

Short windows drive fixes, long windows drive projects.