Skip to content

Run prod's canary and indexer offset from staging's - #62

Merged
Bryancruzcb merged 1 commit into
mainfrom
ops/stagger-canary
Sep 22, 2026
Merged

Bryancruzcb merged 1 commit into
mainfrom
ops/stagger-canary

Conversation

@Bryancruzcb

Copy link
Copy Markdown
Owner

SearchLatencyHigh opened and closed 14 GitHub issues (#48–#61) between
14:10 and 21:25 UTC on 2026-09-21 while the node sat idle between game-day
scenarios. The cause was not load and not the alert. It was the schedule.

What Prometheus showed

both canaries together one canary alone
mean search 3.7 – 4.0 s 1.88 s
of which reranking 3.55 – 3.82 s 1.79 s
searches over 3 s, 6 h 235 / 240 prod, 213 / 240 staging —

The canary is the only search traffic between deploys, and both namespaces
took the base's */15 schedule, so twenty reranked searches started on the
same minute on a node whose two vCPUs are one physical core. There was no CPU
throttling, each API pod peaked near one core, and the node averaged 10% busy:
the two pods were only ever slow together. The "alone" column is a one-off
canary Job run between scheduled runs, with prod idle in the same window.

The change

deploy/k8s/overlays/prod/schedules.yaml patches two schedules in prod only:

  • the canary moves to 7-59/15, seven minutes after staging's; each run takes about half a minute
  • the indexer moves from 06:00 to 06:30 UTC, the same mechanism, which deploy/k8s/README.md already listed as a follow-up; that one is not measured

Staging is unchanged. The alert rule is unchanged too, because it was
reporting something real.

Checks

Both overlays render with kubectl kustomize and pass kubeconform -strict
(20 resources). The rendered prod CronJobs carry the new schedules and
staging's carry the old ones. Merging this deploys it; the evidence it worked
is the next few hours of canary latency, which I'll read back from Prometheus.

Both namespaces took the base's schedules, so their canaries started on the
same minute every 15 minutes, on a node whose two vCPUs are one physical
core. Measured 2026-09-21 from Prometheus on the node:

- 240 canary searches per namespace in six hours, the only search traffic;
  235 of prod's and 213 of staging's took over 3 s.
- Mean 3.7 to 4.0 s a search, 3.55 to 3.82 s of it in the reranker, p95
  about 4.9 s. No CPU throttling; each API pod peaked near one core, and
  the node averaged 10 percent busy.
- The same ten canary questions run alone, between scheduled runs: 1.88 s
  a search, 1.79 s of it reranking.

So the pods were only ever slow together, and SearchLatencyHigh opened and
closed fourteen GitHub issues (#48 to #61) that afternoon measuring exactly
that. The fix is the cause, not the alert: prod's canary moves to seven past
the quarter hour. Prod's indexer moves from 06:00 to 06:30 by the same
mechanism, which the k8s README already listed as a follow-up and which has
not itself been measured.
@Bryancruzcb
Bryancruzcb merged commit 48581c6 into main Sep 22, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant