Bitpath

Lesson 2 · Unit 04

Debugging production

Slice by version, region or customer, compare bad requests with good ones, and read what a canary shows.

13 exercisesabout 3 min

What you practise

  • Slice by version, region or customer, compare bad requests with good ones, what a canary shows

Try a question from this lesson

Pick one

The error share has been 2% for an hour. Someone says "2% is annoying, not urgent". Then you split it by region. What was the 2% hiding?

region   req/s   err %
eu-1      500     0.1
us-1      400     0.1
ap-1      100    19.1
Hint

Compare the three rows with each other, not with 2%.

The ideas

Concept cards are short on purpose. In the app they appear between questions, after you have met the idea.

Concept

Slice until one piece holds the problem

To slice is to split one signal by one dimension: version, region, endpoint, customer, client. Healthy slices look alike. The broken one stands out.

Slice by what changed recently first, which usually means version. If every slice is equally bad, that dimension is not the story: try the next.

err % overall        2.0
  by version         v41 2.0   v42 2.1
  by region          eu 0.1  us 0.1
                     ap 19.1   <- here

Concept

Compare bad with good

Once a slice holds the problem, take some failing requests and some healthy ones from the same minutes. List their fields side by side.

You are looking for a value that the failures share and the successes lack. A field that appears on both sides is not the cause, however suspicious it looks.

           bad requests   good requests
version    v41, v42       v41, v42
region     eu, us         eu, us
client     app 5.2        app 5.1, web
                ^ only this one separates

10 more exercises in the app

  • 2× type the answer
  • 5× multiple choice
  • 1× true or false
  • 1× fill the blanks
  • 1× order the lines

Bitpath is an iOS app in development. Join the waitlist and you get one email when it is ready to try.

One email when Bitpath is ready to try. Nothing else. Privacy