Day 16: Final case
Goal: Solve a fault with several causes – using only the tools of the last fifteen days: tally sheet and pinboard (Day 15), sign and way back (Day 13), output rule (Day 14), timeouts (Days 9 and 10), test bench (Day 7). Each cause with evidence, repair and counter-check, and a report at the end · Duration: approx. 150 min · Prerequisite: Day 15
State before this chapter
First you check that the state from Day 15 is there: all services, the sign, the caretaker.
# on rag1
mkdir -p ~/kurs/16# on rag1
cd ~/kurs/16# on rag1
kubectl -n rag get pods --field-selector=status.phase=RunningExpected:
NAME READY STATUS RESTARTS AGE
antwort-54d5786864-7fhh6 1/1 Running 0 3h18m
antwort-54d5786864-zt6q8 1/1 Running 0 3h18m
auswertung 1/1 Running 0 10h
curl 1/1 Running 0 11h
embed-66bdc7c6c9-rqqpn 1/1 Running 1 (20h ago) 37h
llm-579476976d-6rx9d 1/1 Running 0 17h
pg-1 1/1 Running 1 (16h ago) 16h
prometheus-69c6d5f589-v7zgx 1/1 Running 0 3h33m
qdrant-0 1/1 Running 0 11h
qdrant-1 1/1 Running 0 11h
The sign auskunft – which cabinet does it point to?
# on rag1
kubectl -n rag exec curl -- curl -s -K /schluessel/lesen.conf http://qdrant.rag:6333/aliases > aliase.json# on rag1
jq -c '.result.aliases[]' aliase.jsonExpected:
{"alias_name":"auskunft","collection_name":"wissen-qwen3"}
The caretaker: five targets, three rules.
# on rag1
kubectl -n rag exec curl -- \
curl -s http://prometheus.rag:9090/api/v1/targets > ziele.json# on rag1
jq -c '.data.activeTargets[] | {job: .labels.job, instance: .labels.instance, health}' ziele.jsonExpected:
{"job":"antwort","instance":"antwort-54d5786864-7fhh6","health":"up"}
{"job":"antwort","instance":"antwort-54d5786864-zt6q8","health":"up"}
{"job":"pg","instance":"pg-1","health":"up"}
{"job":"qdrant","instance":"qdrant-0","health":"up"}
{"job":"qdrant","instance":"qdrant-1","health":"up"}
# on rag1
kubectl -n rag exec curl -- \
curl -s http://prometheus.rag:9090/api/v1/rules > regeln.json# on rag1
jq -c '.data.groups[].rules[] | {name, health, state}' regeln.jsonExpected:
{"name":"AuskunftFindetNichts","health":"ok","state":"inactive"}
{"name":"AuskunftVerwirft","health":"ok","state":"inactive"}
{"name":"ZielNichtErreichbar","health":"ok","state":"inactive"}
What you see: Ten pods, the sign points to
wissen-qwen3, five targets up, no rule active.
This is the healthy operation you compare against today. Your names and
times will differ.
Introduction
For fifteen days you built and measured one topic at a time. In operation, problems do not arrive sorted by topic. They arrive as a complaint: “The information desk has been weird since Friday.” Behind it there are often several causes that hide each other.
Today you play through such a case. First you replay Friday – two changes by a colleague who “tidied up a bit”. Then comes Monday: a visitor asks questions, the complaints come in. From there you investigate – without looking up the colleague’s changes, only with what operation shows you.
There is no new technology today. What is new is the procedure: normal value, trace, evidence, repair, counter-check, report.
Today you learn:
- to get from symptom to trace: which number in the tally sheet differs from the normal value,
- to follow each trace to a piece of evidence – an output that shows the cause,
- to compare the running state with the target state
(
kubectl diff), - why the test bench from Day 7 does not see this fault,
- that a repair can reveal a new symptom – and why that is progress,
- to add an alert rule and check retroactively whether it would have fired,
- to write a report without blame.
Background
The picture for today: Monday morning in the library
On Monday three complaints are waiting at the counter. “The desk doesn’t know the new VPN client.” – “Sometimes nothing comes back, just an error.” – “Something has been different since Friday.” On Friday a colleague “tidied up a bit”. What exactly, he no longer remembers.
The librarian does not guess. She works like a detective:
- First the caretaker’s book (Prometheus): which number differs from the normal value you measured on Day 15? A normal value is her alibi check – without it every number looks suspicious.
- Every conspicuous column of the tally sheet is a trace. She follows each trace on its own, up to a piece of evidence – an output that shows the cause instead of merely suggesting it.
- For every cause a repair and a counter-check: the same question that failed before must succeed now – and the tally sheet must return to the normal value.
- At the end she writes a report to the house: what happened, when, why, how it was found and what changes. Without a culprit – the colleague did what seemed sensible to him.
Every detective learns one thing: causes hide each other. Whoever fixes the first sometimes sees a new symptom – not because the repair does harm, but because the second cause had no chance to show itself before.
The terms
| Term | Meaning | in the picture |
|---|---|---|
| symptom | what users or measurements notice | the complaint at the counter |
| normal value | the number measured in healthy operation (Day 15) | the alibi |
| trace | a conspicuous number or log line you follow up | a column that does not add up |
| evidence | an output that shows the cause | the piece of evidence |
| cause | the change or state that produces the symptom | who did what on Friday |
| counter-check | the same check after the repair | the question that now succeeds |
| target state | the files operation is built from (here ~/kurs/15) |
the inventory |
| report (postmortem) | written review without blame | the report to the house |
Remember: Compare first, then suspect. Every number that differs from the normal value is a trace; every trace ends only at a piece of evidence. And after every repair you measure again – the next cause may be waiting behind it.
Drill 1: Friday
Where you are: on rag1, in
~/kurs/16.What you have afterwards: operation in the state after Friday – two changes a colleague meant well.
In this drill: You play the colleague. On Friday, for an audit, he tested the way back from Day 13 and brought the answer service “up to the Git state”. His note: “Way back tested, works. Answer service rolled out from Git, timeout a bit tighter so nobody waits forever.”
Step 1 – testing the way back. The colleague moves
the sign to wissen, with the file from Day 13.
# on rag1
cp ../13/umhaengen-wissen.json .# on rag1
cat umhaengen-wissen.jsonExpected:
{
"actions": [
{
"delete_alias": {
"alias_name": "auskunft"
}
},
{
"create_alias": {
"collection_name": "wissen",
"alias_name": "auskunft"
}
}
]
}
# on rag1
kubectl -n rag exec -i curl -- curl -s -K /schluessel/voll.conf -X POST \
http://qdrant.rag:6333/collections/aliases \
-H 'Content-Type: application/json' -d @- < umhaengen-wissen.jsonExpected:
{"result":true,"status":"ok","time":0.166502755}
The way back works – and the sign stays there. Nobody moved it back.
Step 2 – the answer service “from Git”. The colleague’s file:
# on rag1
nano antwort-git.yamlapiVersion: apps/v1
kind: Deployment
metadata:
name: antwort
namespace: rag
spec:
replicas: 2
selector:
matchLabels:
app: antwort
template:
metadata:
labels:
app: antwort
qdrant-zugang: "ja"
spec:
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchLabels:
app: antwort
matchLabelKeys:
- pod-template-hash
containers:
- name: antwort
image: python:3.14.10-slim-trixie
command: ["python", "/code/antwort.py"]
env:
- name: SAMMLUNG
value: auskunft
- name: KARTEN
value: "3"
- name: LLM_TIMEOUT
value: "15"
- name: MINDEST_SCORE
value: "0.46"
- name: RERANK_URL
value: ""
- name: PLAETZE
value: "2"
- name: ERLAUBTE_DOMAINS
value: firma.example,kubernetes.io
- name: QDRANT_API_KEY
valueFrom:
secretKeyRef:
name: qdrant-schluessel
key: lesen
ports:
- containerPort: 8080
resources:
requests:
cpu: 100m
memory: 64Mi
limits:
memory: 128Mi
lifecycle:
preStop:
sleep:
seconds: 5
readinessProbe:
httpGet:
path: /health
port: 8080
volumeMounts:
- name: code
mountPath: /code
volumes:
- name: code
configMap:
name: antwort-code
---
apiVersion: v1
kind: Service
metadata:
name: antwort
namespace: rag
spec:
selector:
app: antwort
ports:
- port: 80
targetPort: 8080Look at it, but do not compare it line by line with your file from Day 15 yet – that is part of the investigation later.
# on rag1
kubectl apply -f antwort-git.yamlExpected:
deployment.apps/antwort configured
service/antwort unchanged
# on rag1
kubectl -n rag rollout status deployment/antwort --timeout=120sExpected (excerpt – the last line, after 15 seconds in the lab):
deployment "antwort" successfully rolled out
Remember: Each of the two changes sounds harmless and was “tested” on its own. A weekend becomes dangerous when nobody compares the state afterwards with the target state.
Save your progress? Sign up for free
Drill 2: Monday
Where you are: on rag1, in
~/kurs/16.What you have afterwards: five minutes of operation with the visitor from Day 15 – and the complaints.
In this drill: The visitor from Day 15 asks his eight questions and a ninth: the question about the VPN client from the diagnosis task of Day 15.
Step 1 – the questions. You take the list from Day 15 and append the ninth question.
# on rag1
cp ../15/fragen.txt .# on rag1
nano fragen.txtWie komme ich von zu Hause ins Firmennetz?
Der Drucker druckt nicht mehr. Was soll ich tun?
Wie beantrage ich Urlaub?
Wie groß darf ein Secret höchstens sein?
Was ist eine Toleration?
Wie bekomme ich einen neuen Laptop?
Wozu dient eine Startup-Probe?
Wie stelle ich ein Backup wieder her?
Wo lade ich den neuen VPN-Client herunter?# on rag1
kubectl -n rag delete configmap besucher-fragenExpected:
configmap "besucher-fragen" deleted from rag namespace
# on rag1
kubectl -n rag create configmap besucher-fragen --from-file=fragen.txtExpected:
configmap/besucher-fragen created
Step 2 – the visitor. The manifest from Day 15 stays unchanged.
# on rag1
kubectl apply -f ../15/besucher.yamlExpected:
pod/besucher created
# on rag1
kubectl -n rag wait --for=condition=Ready pod/besucher --timeout=120sExpected:
pod/besucher condition met
Let him ask for a good five minutes. In the lab he ran from 09:50:07.
Step 3 – the complaints. On Monday three reports come in (the lab is German, so are the users):
- “The desk tells me to get the VPN client from the self-service portal. It isn’t there.”
- “Sometimes there’s no answer at all, just an error.”
- “Something has been different since Friday.”
Remember: Complaints are symptoms, not causes. They tell you where to start – not what is broken.
Save your progress? Sign up for free
Drill 3: The situation
Where you are: on rag1, in
~/kurs/16. The visitor keeps asking.What you have afterwards: the deviations from the normal value – each of them a trace.
In this drill: Before you search logs or files, you look into the caretaker’s book and compare with the normal values from Day 15: 12.5 % without a card, best scores mostly between 0.42 and 0.6, no error at the visitor.
Step 1 – what the visitor sees.
# on rag1
kubectl -n rag logs besucher --tail=10Expected:
09:53:23 200
09:53:36 200
09:53:46 200
09:53:58 200
09:54:14 200
09:54:26 200
09:54:37 200
09:54:56 504
09:54:59 200
09:55:12 200
# on rag1
kubectl -n rag logs besucher | grep -c ' 200$'Expected:
23
# on rag1
kubectl -n rag logs besucher | grep -v ' 200$'Expected:
09:51:17 504
09:54:56 504
Two 504 Gateway Timeout in five minutes. On Day 15 there
was not a single one.
Step 2 – the pinboard. You bring the query files from Day 15.
# on rag1
cp ../15/ergebnisse.promql ../15/anteil-keine.promql ../15/stufen-mittel.promql ../15/score-verteilung.promql .# on rag1
kubectl -n rag exec curl -- \
curl -s http://prometheus.rag:9090/api/v1/alerts > alarme.json# on rag1
jq -c '.data.alerts[] | {alarm: .labels.alertname, state}' alarme.jsonExpected: no output – no alert.
Before you read on – your prediction: No alert, but errors at the visitor and a wrong answer. Which numbers in the tally sheet will differ from the normal value?
Step 3 – how the questions ended.
# on rag1
kubectl -n rag exec -i curl -- curl -s http://prometheus.rag:9090/api/v1/query \
--data-urlencode query@- < ergebnisse.promql > ergebnisse.json# on rag1
jq -c '.data.result[] | {ergebnis: .metric.ergebnis, anzahl: .value[1]}' ergebnisse.jsonExpected:
{"ergebnis":"abgewiesen","anzahl":"0"}
{"ergebnis":"antwort","anzahl":"18.77346315789474"}
{"ergebnis":"fehler","anzahl":"0"}
{"ergebnis":"keine_karte","anzahl":"3.1128877192982456"}
{"ergebnis":"verworfen","anzahl":"0"}
{"ergebnis":"zeitueberschreitung","anzahl":"2.079578947368421"}
Thanks to the counters starting at 0 from Day 15, all six columns are
there. Trace 1: zeitueberschreitung
(timeout) – the counter gave up twice before the language model was
done.
# on rag1
kubectl -n rag exec -i curl -- curl -s http://prometheus.rag:9090/api/v1/query \
--data-urlencode query@- < anteil-keine.promql > anteil-keine.json# on rag1
jq -c '.data.result[] | .value[1]' anteil-keine.jsonExpected:
"0.12541624382231686"
The share without a card is normal. That is why
AuskunftFindetNichts stays silent.
Step 4 – the latency.
# on rag1
kubectl -n rag exec -i curl -- curl -s http://prometheus.rag:9090/api/v1/query \
--data-urlencode query@- < stufen-mittel.promql > stufen-mittel.json# on rag1
jq -c '.data.result[] | {stufe: .metric.stufe, sekunden: .value[1]}' stufen-mittel.jsonExpected:
{"stufe":"embed","sekunden":"0.2767952674156113"}
{"stufe":"schild","sekunden":"0.018155812414308428"}
{"stufe":"suche","sekunden":"0.021172504211874124"}
{"stufe":"llm_antwort","sekunden":"3.645219429179829"}
{"stufe":"llm_laden","sekunden":"0.005401491660884559"}
{"stufe":"llm_prompt","sekunden":"5.587353200664433"}
llm_antwort is at 3.6 instead of 6.7 seconds. Faster?
No: the language model’s times are only counted when an answer arrives.
The long answers are missing – they ended as timeouts. Whoever only
looks at the mean sees an improvement where answers are being lost.
Step 5 – the scores.
# on rag1
kubectl -n rag exec -i curl -- curl -s http://prometheus.rag:9090/api/v1/query \
--data-urlencode query@- < score-verteilung.promql > score-verteilung.json# on rag1
jq -c '.data.result[] | {le: .metric.le, anzahl: .value[1]}' score-verteilung.jsonExpected:
{"le":"0.1","anzahl":"0"}
{"le":"0.2","anzahl":"0"}
{"le":"0.3","anzahl":"0"}
{"le":"0.4","anzahl":"0"}
{"le":"0.42","anzahl":"0"}
{"le":"0.5","anzahl":"5.254126315789474"}
{"le":"0.6","anzahl":"5.254126315789474"}
{"le":"0.7","anzahl":"17.854094736842107"}
{"le":"0.8","anzahl":"24.15633684210526"}
{"le":"+Inf","anzahl":"24.15633684210526"}
What you see:
| Bucket | Day 15 (normal) | today | meaning |
|---|---|---|---|
| up to 0.42 | a good 2 | 0 | no question below the threshold of wissen-qwen3 |
| 0.42 to 0.6 | a good 18 | a good 5 | the normal range is almost empty |
| 0.6 to 0.8 | 0 | almost 19 | nearly all questions here – that never happened on Day 15 |
Trace 2: The whole distribution has moved to the
right. Better cards? Unlikely – no card was added on
Friday. A distribution that moves as a whole usually means: something is
measured with a different yardstick – a different model, a different
collection. You know this from Day 13: bge-m3 gives higher
scores than qwen3-embedding.
Resolving your prediction: Two columns differ –
zeitueberschreitungand the score distribution. The share without a card, which the alert rule watches, stays normal. That is why there was no alert.
Remember: The tally sheet shows not only that something is different but where. A mean can lie: when the slow cases end as errors, the rest looks faster.
Save your progress? Sign up for free
Drill 4: Trace 1 – the timeouts
Where you are: on rag1, in
~/kurs/16.What you have afterwards: the evidence for the 504s – and the difference between the running state and the target state.
In this drill: You follow the column zeitueberschreitung
into the log and from there to the configuration.
Step 1 – the log.
# on rag1
kubectl -n rag logs -l app=antwort --prefix --since=6mExpected (excerpt – look for the line with
Zeitüberschreitung):
[pod/antwort-74bb7f4bd5-cpf26/antwort] antwort {'suche': 0.2, 'gesamt': 15.18} Was ist eine Toleration?
[pod/antwort-74bb7f4bd5-cpf26/antwort] keine Karte bester 0.452 wissen Wie bekomme ich einen neuen Laptop?
[pod/antwort-74bb7f4bd5-cpf26/antwort] antwort {'suche': 0.25, 'gesamt': 10.63} Wozu dient eine Startup-Probe?
[pod/antwort-74bb7f4bd5-cpf26/antwort] antwort {'suche': 0.25, 'gesamt': 7.2} Wo lade ich den neuen VPN-Client herunter?
[pod/antwort-74bb7f4bd5-cpf26/antwort] antwort {'suche': 0.42, 'gesamt': 8.38} Wie groß darf ein Secret höchstens sein?
[pod/antwort-74bb7f4bd5-cpf26/antwort] Zeitüberschreitung nach 15.0 s Was ist eine Toleration?
What you see:
Zeitüberschreitung nach 15.0 s (timeout after 15.0 s). On
Day 15 LLM_TIMEOUT was 60. The same question about the
toleration had just made it through shortly before, after 15.18 seconds
in total. Two side findings: the line about the laptop names the
collection wissen, not wissen-qwen3 – that
belongs to trace 2. And although the visitor saw two 504s, the log shows
only one timeout: kubectl logs -l prints only the last 10
lines per pod, even with --since. For everything you need
--tail=-1.
Step 2 – running state against target state. Your
target state is the file from Day 15. kubectl diff shows
what would change if you applied it – without changing
anything.
# on rag1
kubectl diff -f ../15/antwort.yaml-– what is in the cluster now,+– what would be there after applying the file; exit code 1 means “there are differences”.
Expected (excerpt – the
last-applied-configuration line and the header lines left
out):
- generation: 33
+ generation: 34
name: antwort
namespace: rag
resourceVersion: "225651"
@@ -41,14 +41,14 @@
- name: KARTEN
value: "3"
- name: LLM_TIMEOUT
- value: "15"
+ value: "60"
- name: MINDEST_SCORE
value: "0.46"
- name: RERANK_URL
- name: PLAETZE
value: "2"
- name: ERLAUBTE_DOMAINS
- value: firma.example,kubernetes.io
+ value: firma.example,kubernetes.io,vpn-hersteller.example
- name: QDRANT_API_KEY
valueFrom:
secretKeyRef:
What you see: Two differences.
LLM_TIMEOUT 15 instead of 60 – the evidence for trace 1. An
answer service on CPU needs 9.4 and 15.2 seconds at the 95th percentile
for prompt and answer (Day 15); 15 seconds for everything is not enough.
The second difference: vpn-hersteller.example is missing
from the domain list. But the tally sheet says verworfen 0
(discarded). This change has had no effect so far.
Before you read on – your prediction: Why does the counter not discard a single answer, although the vendor’s domain is missing?
Remember:
kubectl diffagainst the target state is the fastest way to ask “What has changed?”. It only works if there is a target state – here your folder~/kurs/15, in operation a Git repository.
Save your progress? Sign up for free
Drill 5: Trace 2 – the wrong answer
Where you are: on rag1, in
~/kurs/16.What you have afterwards: the evidence for the answer with the self-service portal – and the insight why the test bench notices nothing.
In this drill: You ask the colleague’s question yourself and follow the trace of the scores.
Step 1 – the question about the VPN client.
# on rag1
cp ../15/vpn-client.json .# on rag1
kubectl -n rag exec -i curl -- curl -s -X POST http://antwort.rag/frage \
-H 'Content-Type: application/json' -d @- < vpn-client.json > vpn-client.json.antwort# on rag1
jq . vpn-client.json.antwortExpected:
{
"antwort": "[D1] Lade den neuen VPN-Client von dem Self-Service-Portal herunter.",
"quellen": [
{
"nr": 1,
"quelle": "karte-vpn.txt",
"abschnitt": "VPN-Zugang einrichten",
"score": 0.602,
"sammlung": "wissen"
},
{
"nr": 2,
"quelle": "k8s-secret.md",
"abschnitt": "Container image pull Secrets",
"score": 0.483,
"sammlung": "wissen"
},
{
"nr": 3,
"quelle": "k8s-secret.md",
"abschnitt": "Alternatives to Secrets",
"score": 0.48,
"sammlung": "wissen"
}
],
"sekunden": {
"suche": 3.2,
"gesamt": 11.9
}
}
What you see: The answer from the complaint
(“Download the new VPN client from the self-service portal”). The card
karte-vpn-client.txt from Day 15 is not among the sources;
instead there is the old card on VPN access, which mentions the
self-service portal. The language model built a plausible but wrong
answer from it – with a source reference in a form ([D1])
that none of the cards carries. And every source comes from the
collection wissen.
Step 2 – the backup question. For comparison, a question that always succeeded on Day 15.
# on rag1
cp ../14/backup.json .# on rag1
kubectl -n rag exec -i curl -- curl -s -X POST http://antwort.rag/frage \
-H 'Content-Type: application/json' -d @- < backup.json > backup.json.antwort# on rag1
jq '.quellen[] | {quelle, score, sammlung}' backup.json.antwortExpected:
jq: error (at backup.json.antwort:0): Cannot iterate over null (null)
There is no field quellen. What is in the answer
instead?
# on rag1
jq . backup.json.antwortExpected:
{
"fehler": "keine Antwort in 15.0 s"
}
Trace 1 again, this time for yourself: the request took a good 20 seconds, the counter gave up after 15.
Step 3 – the sign.
# on rag1
kubectl -n rag exec curl -- curl -s -K /schluessel/lesen.conf http://qdrant.rag:6333/aliases > aliase.json# on rag1
jq -c '.result.aliases[]' aliase.jsonExpected:
{"alias_name":"auskunft","collection_name":"wissen"}
# on rag1
kubectl -n rag exec curl -- curl -s -K /schluessel/lesen.conf \
http://qdrant.rag:6333/collections/wissen > wissen.json# on rag1
jq -c '{punkte: .result.points_count, metadaten: .result.config.metadata}' wissen.jsonExpected:
{"punkte":174,"metadaten":{"modell":"bge-m3","mindest_score":0.46}}
What you see: The sign points to wissen
– the way back from Day 13. It holds 174 cards, embedded with
bge-m3. On Day 15 the VPN client card went only into
wissen-qwen3. The answer service does everything right: it
reads model and threshold from the metadata behind the sign, embeds with
bge-m3 – and that is why the scores are higher. This is the
evidence for trace 2: wrong sign, not a broken cabinet.
Step 4 – what the test bench says. The test bench from Day 7, in the version from Day 14:
# on rag1
kubectl -n rag delete job eval-qwen3Expected:
job.batch "eval-qwen3" deleted from rag namespace
# on rag1
kubectl apply -f ../14/eval-qwen3.yamlExpected:
job.batch/eval-qwen3 created
# on rag1
kubectl -n rag wait --for=condition=Complete job/eval-qwen3 --timeout=300sExpected:
job.batch/eval-qwen3 condition met
# on rag1
kubectl -n rag logs job/eval-qwen3 --tail=1Expected:
{"sammlung": "wissen-qwen3", "suche": "dicht", "rerank": false, "fragen": 13, "treffer@1": 0.69, "treffer@3": 0.85, "treffer@5": 0.92, "mrr": 0.78, "im_pool": 0.92, "sekunden_je_frage": 2.79}
What you see: MRR 0.78 – exactly the value from Days
13 and 14. The test bench queries wissen-qwen3 directly,
not the sign. It checks the cabinet, and the cabinet is fine. Only the
time per question is ten times higher (2.79 instead of 0.27 s): the
visitor keeps the embedding service and the language model busy.
Remember: A test bench checks exactly what it points at. If it points at the cabinet, it does not see a wrong sign. The counter-check therefore belongs on the same path users take – through the answer service.
Save your progress? Sign up for free
Drill 6: Repair and counter-check
Where you are: on rag1, in
~/kurs/16. The visitor keeps asking.What you have afterwards: operation in the target state – and the proof that the tally sheet returns to the normal value.
In this drill: You repair one cause after the other and measure after each. First the sign – in the lab half an hour after the investigation.
Step 1 – the sign back. The file from Day 13:
# on rag1
cp ../13/umhaengen-qwen3.json .# on rag1
cat umhaengen-qwen3.jsonExpected:
{
"actions": [
{
"delete_alias": {
"alias_name": "auskunft"
}
},
{
"create_alias": {
"collection_name": "wissen-qwen3",
"alias_name": "auskunft"
}
}
]
}
# on rag1
kubectl -n rag exec -i curl -- curl -s -K /schluessel/voll.conf -X POST \
http://qdrant.rag:6333/collections/aliases \
-H 'Content-Type: application/json' -d @- < umhaengen-qwen3.jsonExpected:
{"result":true,"status":"ok","time":0.16288616}
Step 2 – the counter-check for the sign. The same question about the VPN client:
# on rag1
kubectl -n rag exec -i curl -- curl -s -X POST http://antwort.rag/frage \
-H 'Content-Type: application/json' -d @- < vpn-client.json > vpn-client.json.antwort# on rag1
jq . vpn-client.json.antwortExpected:
{
"antwort": "Dazu steht nichts im Handbuch.",
"quellen": [],
"verworfen": "download.vpn-hersteller.example"
}
# on rag1
kubectl -n rag logs -l app=antwort --prefix --since=30sExpected:
[pod/antwort-74bb7f4bd5-cpf26/antwort] verworfen fremde Adresse download.vpn-hersteller.example Wo lade ich den neuen VPN-Client herunter?
[pod/antwort-74bb7f4bd5-9kwhl/antwort] antwort {'suche': 0.38, 'gesamt': 14.2} Der Drucker druckt nicht mehr. Was soll ich tun?
[pod/antwort-74bb7f4bd5-9kwhl/antwort] antwort {'suche': 0.3, 'gesamt': 11.45} Wie beantrage ich Urlaub?
Resolving your prediction: As long as the sign pointed to
wissen, the search did not find the card with the vendor address at all – so the address never got into an answer, and the output rule had nothing to discard. The first cause hid the third. Now, with the right card, the outdated domain list takes effect.
The pinboard reports it half a minute later:
# on rag1
kubectl -n rag exec curl -- \
curl -s http://prometheus.rag:9090/api/v1/alerts > alarme.json# on rag1
jq -c '.data.alerts[] | {alarm: .labels.alertname, state, activeAt}' alarme.jsonExpected:
{"alarm":"AuskunftVerwirft","state":"firing","activeAt":"2026-12-03T10:26:56.898659708Z"}
The new symptom is progress: the answer is no longer wrong but held
back – and the rule from Day 15 reports it, because the counter
verworfen has started at 0 since the diagnosis task.
Step 3 – the answer service back to the target state. Both differences from Drill 4 are in the same file. You take the file from Day 15 as the target state:
# on rag1
cp ../15/antwort.yaml antwort.yaml# on rag1
kubectl apply -f antwort.yamlExpected:
deployment.apps/antwort configured
service/antwort unchanged
# on rag1
kubectl -n rag rollout status deployment/antwort --timeout=120sExpected (excerpt – the last line):
deployment "antwort" successfully rolled out
Now the comparison must be empty:
# on rag1
kubectl diff -f antwort.yamlExpected: no output, exit code 0 – running state and target state are the same.
Step 4 – the counter-check for both questions. A few seconds after the rollout:
# on rag1
kubectl -n rag exec -i curl -- curl -s -X POST http://antwort.rag/frage \
-H 'Content-Type: application/json' -d @- < vpn-client.json > vpn-client.json.antwort# on rag1
jq '{antwort, quellen}' vpn-client.json.antwortExpected:
{
"antwort": "Die neue Version des VPN-Clients lädst du unter https://download.vpn-hersteller.example/client herunter. [1]",
"quellen": [
{
"nr": 1,
"quelle": "karte-vpn-client.txt",
"abschnitt": "VPN-Client aktualisieren",
"score": 0.705,
"sammlung": "wissen-qwen3"
},
{
"nr": 2,
"quelle": "karte-vpn.txt",
"abschnitt": "VPN-Zugang einrichten",
"score": 0.597,
"sammlung": "wissen-qwen3"
},
{
"nr": 3,
"quelle": "karte-druck.txt",
"abschnitt": "Druckdienst neu starten",
"score": 0.338,
"sammlung": "wissen-qwen3"
}
]
}
# on rag1
kubectl -n rag exec -i curl -- curl -s -X POST http://antwort.rag/frage \
-H 'Content-Type: application/json' -d @- < backup.json > backup.json.antwort# on rag1
jq '{antwort, sekunden}' backup.json.antwortExpected:
{
"antwort": "Um ein Backup wiederherzustellen, kannst du die Sicherungen jeder Nacht um 2 Uhr auf den Server sich01 wiederherstellen. Dies kann mit dem Befehl `backup wiederherstellen` erfolgen, wobei eine einzelne Datei mit `restic restore latest --include /pfad/zur/datei` wiederhergestellt wird. [1]",
"sekunden": {
"suche": 3.69,
"gesamt": 24.76
}
}
What you see: The VPN question gets the right answer
from the right card (0.705, collection wissen-qwen3). The
backup question takes 24.76 seconds – with the colleague’s timeout it
would have ended as a 504 again. The answer itself is clumsier than on
Day 15 (the “command backup wiederherstellen” is on no
card): a small language model does not phrase equally well every time
from the same card. That is none of the three causes, but a reason to
read answers continuously as samples (Enterprise note on Day 15).
Step 5 – the tally sheet after five minutes. The rollout set the counters to 0; after five minutes of the visitor the tally sheet shows only the new state.
# on rag1
kubectl -n rag logs besucher --since=5m | grep -c ' 200$'Expected:
23
# on rag1
kubectl -n rag logs besucher --since=5m | grep -v ' 200$'Expected: no output – no more 504s.
# on rag1
kubectl -n rag exec -i curl -- curl -s http://prometheus.rag:9090/api/v1/query \
--data-urlencode query@- < ergebnisse.promql > ergebnisse.json# on rag1
jq -c '.data.result[] | {ergebnis: .metric.ergebnis, anzahl: .value[1]}' ergebnisse.jsonExpected:
{"ergebnis":"abgewiesen","anzahl":"0"}
{"ergebnis":"antwort","anzahl":"22.89458947368421"}
{"ergebnis":"fehler","anzahl":"0"}
{"ergebnis":"keine_karte","anzahl":"2.0573894736842107"}
{"ergebnis":"verworfen","anzahl":"0"}
{"ergebnis":"zeitueberschreitung","anzahl":"0"}
# on rag1
kubectl -n rag exec -i curl -- curl -s http://prometheus.rag:9090/api/v1/query \
--data-urlencode query@- < anteil-keine.promql > anteil-keine.json# on rag1
jq -c '.data.result[] | .value[1]' anteil-keine.jsonExpected:
"0.11111111111111112"
# on rag1
kubectl -n rag exec -i curl -- curl -s http://prometheus.rag:9090/api/v1/query \
--data-urlencode query@- < score-verteilung.promql > score-verteilung.json# on rag1
jq -c '.data.result[] | {le: .metric.le, anzahl: .value[1]}' score-verteilung.jsonExpected:
{"le":"0.1","anzahl":"0"}
{"le":"0.2","anzahl":"0"}
{"le":"0.3","anzahl":"0"}
{"le":"0.4","anzahl":"2.0924561403508775"}
{"le":"0.42","anzahl":"2.0924561403508775"}
{"le":"0.5","anzahl":"7.2810035087719305"}
{"le":"0.6","anzahl":"22.02201754385965"}
{"le":"0.7","anzahl":"22.02201754385965"}
{"le":"0.8","anzahl":"24.127280701754387"}
{"le":"+Inf","anzahl":"24.127280701754387"}
# on rag1
kubectl -n rag exec -i curl -- curl -s http://prometheus.rag:9090/api/v1/query \
--data-urlencode query@- < stufen-mittel.promql > stufen-mittel.json# on rag1
jq -c '.data.result[] | {stufe: .metric.stufe, sekunden: .value[1]}' stufen-mittel.jsonExpected:
{"stufe":"embed","sekunden":"0.4681120909090909"}
{"stufe":"schild","sekunden":"0.015546954545454544"}
{"stufe":"suche","sekunden":"0.023932818181818177"}
{"stufe":"llm_antwort","sekunden":"5.951048944913466"}
{"stufe":"llm_laden","sekunden":"0.006658740907331832"}
{"stufe":"llm_prompt","sekunden":"3.75169576987025"}
What you see:
| Number | Monday | after the repair | Day 15 (normal) |
|---|---|---|---|
| 504 at the visitor (5 min) | 2 | 0 | 0 |
zeitueberschreitung |
2.1 | 0 | – |
| share without a card | 12.5 % | 11.1 % | 12.5 % |
| best scores | mostly 0.6–0.8 | mostly 0.42–0.6 | mostly 0.42–0.6 |
mean llm_antwort |
3.6 s | 6.0 s | 6.7 s |
All numbers are back in the normal range. The language model’s answer time rises again – because the long answers now arrive instead of being cut off. A good repair can make the mean worse.
Remember: One cause after the other, measure after each. That a new symptom appeared after repair 1 was not a step back: it was the third cause that had been hidden before.
Save your progress? Sign up for free
Drill 7: The report
Where you are: on rag1, in
~/kurs/16.What you have afterwards: a report a colleague reads in five minutes and that prevents the next Friday from ending the same way.
In this drill: You write down what happened. A good report names times, evidence and actions – not a culprit. The colleague tested each change on its own; what was missing was the comparison with the target state afterwards. The report stays German like the lab.
# on rag1
nano bericht.md# Bericht: falsche Antworten und Zeitüberschreitungen der IT-Auskunft
## Zusammenfassung
Nach Änderungen am Freitag gab die Auskunft veraltete Antworten (VPN-Client),
brach Fragen mit 504 ab und hätte die richtige VPN-Antwort verworfen.
Drei Ursachen, alle behoben. Keine Daten verloren.
## Zeitlinie (UTC, Labor)
- 09:49:47 Schild auskunft auf wissen umgehängt (Test des Rückwegs, nicht zurückgestellt)
- 09:49:49 antwort-git.yaml ausgerollt: LLM_TIMEOUT 15, Domainliste ohne vpn-hersteller.example
- 09:55 Besucher: 23 x 200, 2 x 504; Strichliste: 2 Zeitüberschreitungen in 5 min
- 09:56 Beleg 1: Log "Zeitüberschreitung nach 15.0 s"; kubectl diff zeigt LLM_TIMEOUT und Domainliste
- 09:56 Beleg 2: VPN-Client-Antwort "Self-Service-Portal" aus Sammlung wissen; Schild zeigt auf wissen
- 10:26 Reparatur 1: Schild zurück auf wissen-qwen3 -> VPN-Antwort jetzt verworfen, Alarm AuskunftVerwirft
- 10:27 Reparatur 2: antwort.yaml aus dem Soll-Stand; kubectl diff leer
- 10:32 Gegenprobe: 23 x 200, 0 andere, 0 Zeitüberschreitungen, 0 verworfen, 11 % ohne Karte
## Ursachen
1. Schild auf der alten Sammlung wissen: Die neue Karte zum VPN-Client fehlt dort,
das Sprachmodell antwortete aus der alten VPN-Karte.
2. LLM_TIMEOUT 15 s: Antworten des Sprachmodells dauern bis 25 s (Backupfrage 24,76 s).
3. Domainliste ohne vpn-hersteller.example: von Ursache 1 verdeckt, erst nach Reparatur 1 sichtbar.
## Warum es niemand gemerkt hat
- Kein Alarm: Anteil ohne Karte normal (12,5 %), keine Regel für Zeitüberschreitungen.
- Der Prüfstand prüft wissen-qwen3 direkt (MRR 0,78) - nicht das Schild.
- Sichtbar war es an der Score-Verteilung (0,6 bis 0,8 statt 0,42 bis 0,6) und an zeitueberschreitung.
## Maßnahmen
- Soll-Stand in Git; vor jedem apply kubectl diff.
- Schild nur mit Ticket umhängen, danach Gegenprobe über den Antwortdienst.
- Alarmregel AuskunftZeitueberschreitung (eingerichtet).
- Timeout am gemessenen p95 ausrichten (Tag 15: 9,4 s + 15,2 s), nicht am Wunsch.| Section | Content |
|---|---|
| Zusammenfassung (summary) | three sentences for everyone who reads only this |
| Zeitlinie (timeline) | every entry with time and evidence from this chapter |
| Ursachen (causes) | numbered, with the reason why they explain the symptom |
| Warum es niemand gemerkt hat (why nobody noticed) | the gaps in observation – often the most valuable part |
| Maßnahmen (actions) | concrete and verifiable; you implement one of them in the challenge |
Remember: The report is written for the next Friday, not the last one. The section “why nobody noticed” is the most important: it turns into new rules on the pinboard.
Save your progress? Sign up for free
If it does not work
| Symptom | Cause | Solution |
|---|---|---|
your tally sheet shows no zeitueberschreitung |
your language model answers faster than 15 s, or the visitor ran too briefly | let it run longer; the log shows the duration of every answer
(gesamt) |
kubectl logs -l app=antwort --since=6m shows fewer
lines than expected |
with -l kubectl prints only 10 lines per pod |
add --tail=-1 |
kubectl diff ends with exit code 1 |
differences found – not an error | read the lines with - and + |
kubectl diff also shows generation and
last-applied-configuration |
bookkeeping fields that change with every apply | look only at the lines under env and
spec |
jq: Cannot iterate over null |
the answer does not contain the field, e.g. on an error | first jq . – what is in it? |
| the VPN question stays wrong after moving the sign | the sign still points to wissen |
check the aliases (Drill 5, step 3) |
AuskunftVerwirft stays firing after the
repair |
the rule looks back 10 minutes | wait 10 minutes; the tally sheet shows verworfen 0 |
Challenge: Would the pinboard have reported it?
The report says: no rule for timeouts. Add it – without restarting Prometheus – and check retroactively whether it would have fired on Monday.
The author’s solution.
Step 1 – the rule. You take configuration and rules from Day 15 and add a fourth rule.
# on rag1
cp ../15/prometheus.yml .# on rag1
cp ../15/regeln.yml .# on rag1
nano regeln.ymlgroups:
- name: auskunft
rules:
- alert: AuskunftFindetNichts
expr: sum(rate(antwort_fragen_total{ergebnis="keine_karte"}[2m])) / sum(rate(antwort_fragen_total[2m])) > 0.5
for: 1m
annotations:
zusammenfassung: Mehr als die Hälfte der Fragen endet ohne Karte.
- alert: AuskunftVerwirft
expr: sum(increase(antwort_fragen_total{ergebnis="verworfen"}[10m])) > 0
annotations:
zusammenfassung: Die Ausgaberegel hat Antworten verworfen.
- alert: ZielNichtErreichbar
expr: up == 0
for: 1m
annotations:
zusammenfassung: Prometheus erreicht ein Ziel nicht.
- alert: AuskunftZeitueberschreitung
expr: sum(increase(antwort_fragen_total{ergebnis="zeitueberschreitung"}[10m])) > 0
annotations:
zusammenfassung: Das Sprachmodell hat in den letzten 10 Minuten mindestens einmal nicht rechtzeitig geantwortet.increase(…{ergebnis="zeitueberschreitung"}[10m])– how many timeouts in the last 10 minutes,> 0– a single one is already an alert; in the normal operation of Day 15 there were none,- no
for:– likeAuskunftVerwirft, straight tofiring.
Step 2 – swap the ConfigMap and reload. As in the challenge of Day 15:
# on rag1
kubectl -n rag delete configmap prometheusExpected:
configmap "prometheus" deleted from rag namespace
# on rag1
kubectl -n rag create configmap prometheus --from-file=prometheus.yml --from-file=regeln.ymlExpected:
configmap/prometheus created
Wait about a minute, then check whether the file has arrived in the pod:
# on rag1
kubectl -n rag exec deploy/prometheus -- grep -c AuskunftZeitueberschreitung /etc/prometheus/regeln.ymlExpected:
1
# on rag1
kubectl -n rag exec curl -- curl -s -X POST http://prometheus.rag:9090/-/reloadExpected: no output.
# on rag1
kubectl -n rag exec curl -- \
curl -s http://prometheus.rag:9090/api/v1/rules > regeln.json# on rag1
jq -c '.data.groups[].rules[] | {name, health, state}' regeln.jsonExpected:
{"name":"AuskunftFindetNichts","health":"ok","state":"inactive"}
{"name":"AuskunftVerwirft","health":"ok","state":"firing"}
{"name":"ZielNichtErreichbar","health":"ok","state":"inactive"}
{"name":"AuskunftZeitueberschreitung","health":"ok","state":"firing"}
The new rule is firing right away: in the lab the last
timeouts before the repair were still inside the 10-minute window.
AuskunftVerwirft still reports the counter-check for the
sign.
Step 3 – check retroactively. A subquery evaluates
the rule’s expression for every minute of the last two hours;
max_over_time takes the highest value.
# on rag1
nano zeit-rueckblick.promqlmax_over_time(sum(increase(antwort_fragen_total{ergebnis="zeitueberschreitung"}[10m]))[2h:1m])| Part | Meaning |
|---|---|
sum(increase(…[10m])) |
the rule’s expression, without > 0 |
[2h:1m] |
subquery: evaluate this expression for every minute of the last 2 hours |
max_over_time(…) |
the highest of these values |
# on rag1
kubectl -n rag exec -i curl -- curl -s http://prometheus.rag:9090/api/v1/query \
--data-urlencode query@- < zeit-rueckblick.promql > zeit-rueckblick.json# on rag1
jq -c '.data.result[] | .value[1]' zeit-rueckblick.jsonExpected:
"8.205128205128204"
What you see: In one 10-minute window of the last two hours there were a good 8 timeouts. The rule would have fired on Monday after the first 504 – not only after the complaints. For the sign trace there is no such simple rule; reporting the shift of the score distribution would be the next task.
Save your progress? Sign up for free
Checkpoint
A quarter of an hour after the repair – at 10:41 in the lab – you check the final state. The pods; the visitor is still running:
# on rag1
kubectl -n rag get pods --field-selector=status.phase=RunningExpected:
NAME READY STATUS RESTARTS AGE
antwort-54d5786864-b52l8 1/1 Running 0 13m
antwort-54d5786864-hfsqr 1/1 Running 0 13m
auswertung 1/1 Running 0 11h
besucher 1/1 Running 0 51m
curl 1/1 Running 0 11h
embed-66bdc7c6c9-rqqpn 1/1 Running 1 (21h ago) 38h
llm-579476976d-6rx9d 1/1 Running 0 18h
pg-1 1/1 Running 1 (17h ago) 17h
prometheus-69c6d5f589-v7zgx 1/1 Running 0 4h24m
qdrant-0 1/1 Running 0 11h
qdrant-1 1/1 Running 0 11h
The sign points to wissen-qwen3:
# on rag1
kubectl -n rag exec curl -- curl -s -K /schluessel/lesen.conf http://qdrant.rag:6333/aliases > aliase.json# on rag1
jq -c '.result.aliases[]' aliase.jsonExpected:
{"alias_name":"auskunft","collection_name":"wissen-qwen3"}
The answer service matches the target state:
# on rag1
kubectl diff -f antwort.yamlExpected: no output.
Five targets up:
# on rag1
kubectl -n rag exec curl -- \
curl -s http://prometheus.rag:9090/api/v1/targets > ziele.json# on rag1
jq -c '.data.activeTargets[] | {job: .labels.job, instance: .labels.instance, health}' ziele.jsonExpected:
{"job":"antwort","instance":"antwort-54d5786864-b52l8","health":"up"}
{"job":"antwort","instance":"antwort-54d5786864-hfsqr","health":"up"}
{"job":"pg","instance":"pg-1","health":"up"}
{"job":"qdrant","instance":"qdrant-1","health":"up"}
{"job":"qdrant","instance":"qdrant-0","health":"up"}
Four rules, all inactive:
# on rag1
kubectl -n rag exec curl -- \
curl -s http://prometheus.rag:9090/api/v1/rules > regeln.json# on rag1
jq -c '.data.groups[].rules[] | {name, health, state}' regeln.jsonExpected:
{"name":"AuskunftFindetNichts","health":"ok","state":"inactive"}
{"name":"AuskunftVerwirft","health":"ok","state":"inactive"}
{"name":"ZielNichtErreichbar","health":"ok","state":"inactive"}
{"name":"AuskunftZeitueberschreitung","health":"ok","state":"inactive"}
# on rag1
kubectl -n rag exec curl -- \
curl -s http://prometheus.rag:9090/api/v1/alerts > alarme.json# on rag1
jq -c '.data.alerts[] | {alarm: .labels.alertname, state}' alarme.jsonExpected: no output – the pinboard is empty.
What the visitor saw in the last ten minutes:
# on rag1
kubectl -n rag logs besucher --since=10m | grep -c ' 200$'Expected:
43
# on rag1
kubectl -n rag logs besucher --since=10m | grep -v ' 200$'Expected: no output.
The visitor has done his job:
# on rag1
kubectl -n rag delete pod besucherExpected:
pod "besucher" deleted from rag namespace
# on rag1
kubectl top pod -n ragExpected:
NAME CPU(cores) MEMORY(bytes)
antwort-54d5786864-b52l8 2m 18Mi
antwort-54d5786864-hfsqr 3m 18Mi
auswertung 0m 0Mi
curl 0m 0Mi
embed-66bdc7c6c9-rqqpn 811m 2715Mi
llm-579476976d-6rx9d 8858m 2224Mi
pg-1 33m 74Mi
prometheus-69c6d5f589-v7zgx 15m 38Mi
qdrant-0 26m 109Mi
qdrant-1 27m 327Mi
What you see: Operation is in the state of Day 15,
plus a fourth rule on the pinboard. The language model is still working
on the visitor’s last question – hence the high CPU for
llm; a minute and a half later it was at 4m in the lab.
This is the final state of the course.
Test yourself
- Why did none of the three rules from Day 15 fire on Monday?
- On Monday the language model’s mean writing time dropped from 6.7 to 3.6 seconds. Why was that not a good sign?
- How did you notice that a different collection was being searched – even before you looked at the sign?
- The test bench reported MRR 0.78 as always. Why is it still no proof that the information desk works?
- After moving the sign back, the VPN question suddenly came back “verworfen” (discarded). Did the repair do harm?
- What would have prevented the whole Monday?
Answers:
AuskunftFindetNichtswatches the share without a card – it stayed normal at 12.5 %.AuskunftVerwirftneeded a discarded answer – there was none, because the vendor card was missing from the wrong cabinet.ZielNichtErreichbaronly checks whether Prometheus reaches the targets. There was no rule for timeouts.- Times are only counted when an answer arrives. The long answers ended as 504s and were missing from the calculation – the rest looked faster. After the repair the mean rose back to 6.0 seconds.
- From the score distribution: almost all questions were between 0.6
and 0.8 instead of between 0.42 and 0.6. If the whole distribution
moves, a different yardstick is measuring – a different model or a
different collection. The log then named
wissen. - It queries
wissen-qwen3directly and bypasses the sign. It checks the cabinet, not the users’ path. A counter-check belongs through the answer service. - No. The wrong answer is gone; the right card is found, and now the outdated domain list takes effect. That was the third cause, hidden by the first – the new symptom showed where to continue.
- A comparison with the target state after the changes
(
kubectl diff, checking the sign) and a counter-check through the answer service. Plus a rule for timeouts – it would have reported after the first 504.
Interview note
“Tell us about a fault you found in operation.” – After changes on a
Friday, a RAG information desk returned outdated answers and occasional
504s. No alert, because the “no hits” share stayed normal. I started
with the metrics: the result counter showed timeouts, and the
distribution of the best retrieval scores had shifted upward as a whole
– a sign of a different embedding model. Evidence: a log line “timeout
after 15 s”, kubectl diff against Git with a timeout of 15
instead of 60 and a shortened domain allowlist, and an alias still
pointing to the fallback collection. The order mattered: after moving
the alias back, a new symptom appeared because the allowlist now took
effect – the third cause had been hidden. The offline evaluator showed
good values the whole time because it queried the collection directly.
Afterwards: a rule for timeouts, kubectl diff before every
apply, counter-checks through the API instead of against the
database.
Enterprise note
In operation the target state is a Git repository, and a GitOps tool
(Argo CD, Flux) reports every drift of the cluster by itself – a
permanent kubectl diff. A vector database’s alias, however,
lives outside Kubernetes; it needs its own reconciliation, such as a job
that compares the aliases against a file in the repository, or a metric
auskunft_sammlung{name=…} with a fixed set of values.
Synthetic checks regularly ask the answer service known questions and
check the source of the answer – that would have reported the VPN
question early on Monday. Blameless postmortems are mandatory in many
teams above a certain severity; their actions become tickets with
deadlines. Changes on Friday are not forbidden, but a change log with a
way back belongs with them.
Summary
- On Friday two changes: the sign on
wissen(test of the way back, not reverted) and an answer service “from Git” withLLM_TIMEOUT15 and a shortened domain list. - On Monday 2 × 504 in five minutes, a wrong VPN answer from the old card – and no alert, because the share without a card stayed normal.
- Traces in the tally sheet:
zeitueberschreitung2.1 and a score distribution shifted to the right (0.6–0.8 instead of 0.42–0.6). The mean writing time dropped – because the long answers were missing. - Evidence: log “Zeitüberschreitung nach 15.0 s”,
kubectl diffagainst~/kurs/15/antwort.yaml, sources withsammlung: wissen, alias onwissen(174 cards,bge-m3). The test bench showed MRR 0.78 – it queries the cabinet, not the sign. - Repair 1 (sign) revealed the third cause: the VPN
answer was discarded,
AuskunftVerwirftreported it. Repair 2 (target state of the answer service) removed the 504s and the discarding;kubectl diffempty afterwards. - Counter-check: 23 × 200, 0 others, share without a card 11 %, scores back at 0.42–0.6, writing time 6.0 s.
- A new rule
AuskunftZeitueberschreitungwould have fired retroactively: up to 8 timeouts in 10 minutes.
Commands at a glance
| Command | what it does | important options |
|---|---|---|
kubectl diff -f <file> |
shows what applying would change | exit code 1 = differences |
kubectl logs -l <label> --prefix --since=<time> |
logs of all matching pods with pod names | --tail=-1 for all lines |
curl …:6333/aliases |
which collection each sign points to | -K /schluessel/lesen.conf |
curl -X POST …:6333/collections/aliases -d @<file> |
move a sign (full key) | delete_alias + create_alias |
max_over_time(<expression>[2h:1m]) |
evaluate a rule expression retroactively for every minute | resolution after the colon |
jq . |
show the whole answer before picking fields | -c one line |
kubectl delete job <name> +
kubectl apply -f <job> |
run a job (test bench) again | wait --for=condition=Complete |