infra(logging): drop osint scrapy item payloads so 8 days fits the PVC #56

Merged
sirius merged 1 commit from wt/t_34ddaa83 into master 2026-11-27 05:45:52 +00:00
Owner

Follow-up to #52 (same branch, same task).

Measured during an osint crawl (2026-11-27 04:45-05:45Z): osint/news-scraper emitted ~150 MB/h, 88 % of it one JSON item dump per crawled article ({'title': ...}, up to 4.7 kB per line — the same rows are already in the osint Postgres DB). At the observed ~2.9x compression that is ~10 GB over 192h, i.e. it does not fit the 8Gi PVC.

This drops exactly those lines, by prefix, for that one container only. Operational lines from the same container (INFO/WARNING/ERROR, tracebacks, the duplicate-URL warnings) still ship — the store still holds osint for 7+ days.

Counter to verify: loki_process_dropped_lines_total{reason="osint_article_payload"}.

Follow-up to #52 (same branch, same task). Measured during an osint crawl (2026-11-27 04:45-05:45Z): `osint/news-scraper` emitted **~150 MB/h**, 88 % of it one JSON *item* dump per crawled article (`{'title': ...}`, up to 4.7 kB per line — the same rows are already in the osint Postgres DB). At the observed ~2.9x compression that is ~10 GB over 192h, i.e. it does not fit the 8Gi PVC. This drops exactly those lines, by prefix, for that one container only. Operational lines from the same container (INFO/WARNING/ERROR, tracebacks, the duplicate-URL warnings) still ship — the store still holds `osint` for 7+ days. Counter to verify: `loki_process_dropped_lines_total{reason="osint_article_payload"}`.
Measured during a crawl (2026-11-27 04:45-05:45Z): osint/news-scraper produced
~150 MB/h, 88 % of it one JSON item dump per crawled article (up to 4.7 kB per
line, the same rows are in the osint Postgres DB). At the observed 2.9x
compression that is ~10 GB over 192h and would not fit the 8Gi PVC, so drop
exactly those lines by prefix for that one container. Operational lines
(INFO/WARNING/ERROR, tracebacks, duplicate-URL warnings) still ship.

docs/logging.md: document the drop rule and the two measured regimes.
sirius merged commit 35610c8d13 into master 2026-11-27 05:45:52 +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!56
No description provided.