docs(gateway): record the access-log fields, measured volume and rotation window (F7) #77

Merged
sirius merged 1 commit from wt/t_e662b03a into master 2026-11-27 06:56:32 +00:00
Owner

Summary

Docs-only follow-up to #76 (merged 81d35955). docs/gateway-access-logging.md records what the new Gateway access log contains, where the objects live in Git, how to verify it, how to parse it, and the measured cost.

Numbers are from a live 19.6-minute window (06:35:26Z -> 06:55:04Z, 11,240 lines / 7,205,793 bytes) with real public traffic:

Measure Value
per line 641 B
line rate 9.54/s
projected 528 MB/day raw (504 MiB)
5-day request average (envoy counter) 274 MB/day
lines per request 1.008 (594 s sub-window: +5,534 lines vs +5,492 requests)

kubelet default 10Mi x 5: 28.6 min per file / ~2.4 h total at the measured rate (4.6 h at the five-day average). Hard cap 50 MiB = 0.023% of siriussec's 213.5 GiB root (99 GiB free; /var/log/pods is 66 MB today), so the default is kept; the archive is Loki, which already ingests the stream (verified with a Loki query) at 12.6x gzip compression = ~42 MB/day, ~340 MB for the 192 h retention inside the 8 GiB PVC. The doc also states the exact kubelet values if a longer file window is ever needed, and why it is a node-wide change.

It also documents the trap that made the first apply look inert: the operator's gateway controller had failed to initialise during an earlier apiserver restart, so the GatewayClassConfig applied cleanly but produced no log until kubectl -n kube-system rollout restart deploy/cilium-operator.

## Summary Docs-only follow-up to #76 (merged 81d35955). `docs/gateway-access-logging.md` records what the new Gateway access log contains, where the objects live in Git, how to verify it, how to parse it, and the measured cost. Numbers are from a live 19.6-minute window (`06:35:26Z -> 06:55:04Z`, 11,240 lines / 7,205,793 bytes) with real public traffic: | Measure | Value | |---|---| | per line | 641 B | | line rate | 9.54/s | | projected | **528 MB/day raw (504 MiB)** | | 5-day request average (envoy counter) | 274 MB/day | | lines per request | 1.008 (594 s sub-window: +5,534 lines vs +5,492 requests) | kubelet default `10Mi x 5`: **28.6 min per file / ~2.4 h total** at the measured rate (4.6 h at the five-day average). Hard cap 50 MiB = 0.023% of siriussec's 213.5 GiB root (99 GiB free; `/var/log/pods` is 66 MB today), so the default is kept; the archive is Loki, which already ingests the stream (verified with a Loki query) at 12.6x gzip compression = ~42 MB/day, ~340 MB for the 192 h retention inside the 8 GiB PVC. The doc also states the exact kubelet values if a longer *file* window is ever needed, and why it is a node-wide change. It also documents the trap that made the first apply look inert: the operator's gateway controller had failed to initialise during an earlier apiserver restart, so the GatewayClassConfig applied cleanly but produced no log until `kubectl -n kube-system rollout restart deploy/cilium-operator`.
Live numbers from a 19.6-minute window after enabling F7: 641 B/line, 9.54
lines/s, 528 MB/day raw (274 MB/day at the 5-day average), 1.008 lines per
request. kubelet's default 10Mi x 5 gives 28.6 min per file / ~2.4 h total at
the measured rate (50 MiB hard cap = 0.023% of the 213.5 GiB root); Loki stores
the same traffic at 12.6x compression (42 MB/day, ~340 MB for 192 h), so the
kubelet default is kept.

Also records the wedge that made the first apply look inert: the operator's
gateway controller had failed to init during an earlier apiserver restart, so
GatewayClassConfig changes produced nothing until the operator was restarted.
sirius merged commit 8a2972c57c into master 2026-11-27 06:56:32 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sirius/homek8s!77
No description provided.