fix: delete analytics logs older than 2 days and give vector a 512 MiB cap #9

Merged
igor merged 1 commits from fix/log-retention-vector-512 into main 2026-10-06 17:28:48 +00:00
1 Commits
Author SHA1 Message Date
Igor K. a923839c47 fix: delete analytics logs older than 2 days and give vector a 512 MiB cap
- every instance gets a pg_cron job (set up on create, upgrade and resume)
  that deletes _analytics.log_events_* rows older than 2 days and runs the
  first cleanup right away; Logflare never deletes stored logs, and instance
  3's 2 GB db image died 100% full of them on 2026-10-06, after which
  analytics 500'd every delivery and vector was OOM-killed by its
  undeliverable backlog every few minutes
- vector's memory limit back to 512 MiB, the ceiling the production
  supabase charts carry; the retention job bounds its backlog, so 1024 MiB
  is not needed anymore
- version 1.3.2
2026-10-06 20:28:29 +03:00