Skip to content
Clairos Learn

Serving, containers, and resources · Lesson 11 of 17 · 7 min

Review a deployment diff

Read a deployment diff for behavioral changes, not just additions and deletions. A replica change affects capacity and cost and should be reviewed against readiness and load.

Mastery 0/3Run itExplain itApply it
learner@clairosSimulated AI Ops lab
learner@clairos:~ $
↑ history · Tab complete · Ctrl+C cancel · Esc, Tab to leaveExit 0

Understand the pattern

Read a deployment diff for behavioral changes, not just additions and deletions. A replica change affects capacity and cost and should be reviewed against readiness and load.

Interpret the evidence

Review the capacity and cost effect of increasing replicas from one to two.

A tempting mistake

Replica count is cosmetic because the image did not change.

All names, measurements, prices, versions, and thresholds in this exercise are fictional training data. The evidence supports this bounded scenario, not a claim about a live provider.

Worked example and expected result
$ cat /opt/ai-lab/cases/aiops-serving-resources-011.json
{
  "fixture": "Fictional training data; not a live measurement.",
  "replicas_before": 1,
  "replicas_after": 2,
  "image_changed": false,
  "cost_reviewed": false
}

Exit status: 0. The command completed successfully in the training fixture.

$ jq .replicas_after /opt/ai-lab/cases/aiops-serving-resources-011.json
2

Exit status: 0. The command completed successfully in the training fixture.

$ printf '%s\n' 'review-replica-change' > /home/learner/lab/aiops-serving-resources-011-decision.txt
(no output; exit 0)

Exit status: 0. The command completed successfully in the training fixture.

Try a variation

Name the assumption that would have to change for “review-replica-change” to stop being the justified action. Do not silently replace missing evidence with a guess.

Explain it

What does the evidence in “Review a deployment diff” justify?

Apply it elsewhere

A colleague concludes: “Replica count is cosmetic because the image did not change.” What should you do?

Keep the momentum.

Complete the lab, then explain and apply the pattern.

Next: Inspect GPU availabilityTry an incident drill

Anonymous lesson and mastery progress lasts for this session. Sign in to keep synced lesson XP between sessions; mastery stays device-local. No speed bonus, lost lives, or hint penalties.

Keep learning

  1. 01Inspect pod resourcesResource requests, limits and observed use serve different roles. Compare the observation with the relevant boundary instead of treating all resource numbers as the same quantity.Practice
  2. 02Inspect GPU availabilityGPU visibility and available memory are separate observations. Measure free memory and runtime attachment before deciding whether the next model can be loaded.Practice
  3. 03Match model memory to GPUServing memory includes weights, cache and working buffers. Compare their combined demand with available memory, not only the artifact size.Practice