Sign inSign up free

1435. The Shop Is Slow: Find Where It Starts

medium 20 XP ~15 minHands-on lab

You are on call for a small online shop, and your pager just went off. The page is in ~/page.txt.

The shop is five services: frontend, cart, checkout, payments and inventory. Every service has its own database and calls one outside system. A request from a customer enters at frontend and can pass through several services.

All of them report to the tools on this machine:

ToolHoldsAddress on this machine
Grafanadashboards and Explore for the three belowhttp://127.0.0.1:3000
Prometheusmetricshttp://127.0.0.1:9090
Lokilogshttp://127.0.0.1:3100
Tempotraceshttp://127.0.0.1:3200

Open Grafana and Prometheus with the buttons above the terminal. Loki and Tempo have no pages of their own: use them in Grafana (Explore, then pick the data source), or query any of the four from the terminal with curl at the addresses above.

Customers say pages take seconds to load.

Task

Find the service where the problem starts, and what is wrong with it. Write one line to /home/student/answer.txt: the service, a space, the cause.

cart slow-query

The cause is one of:

CauseMeaning
db-poolthe service has no free database connections left
slow-queryone of its database queries has become slow
dep-timeoutthe outside system it calls stopped answering in time
cpu-throttlethe service itself is starved of CPU
bad-deploya new version of the service has a bug
cert-expiredthe outside system's TLS certificate is no longer valid
rate-limitedthe outside system is refusing some of its calls
memory-leakthe service runs out of memory and is restarted, again and again

About this machine

Ubuntu 24.04 with no internet access, running the real Prometheus, Loki, Tempo and Grafana (unmodified) and a simulated shop that reports to them. Once the machine is running, Grafana and Prometheus open in a new tab from the buttons above the terminal. The history goes back about an hour. curl, jq and promtool are installed. The grader checks your answer, not the commands you typed. BrokenCluster is not affiliated with, endorsed or sponsored by Grafana Labs or the Prometheus project.

Part of Observability in Practice. Next step: Requests Are Failing: Find Where It Starts

Teaching or writing about this? Embed this lab on your page

TerminalNot started

Your machine is ready to start

A fresh, isolated Ubuntu machine boots in a few seconds with the task already set up.

No account needed: 3 of 3 free tries left. Guest machines last 30 minutes.