Merge branch 'perf/long-range-studies' into release/2.3.0
# Conflicts: # CHANGELOG.md
This commit is contained in:
commit
f9a6783a1f
16 files changed
+846
-83
No files matched your search
@@ -14,6 +14,10 @@ Format based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versio
|
||||
|
||||
- Own and trusted traffic is recorded instead of dropped. Web requests from `URUTAU_TRUSTED` (class `trusted`) and from the `URUTAU_IGNORE` ranges, private networks by default (class `internal`), used to vanish at ingestion, which hid about half of the real requests on a busy host (the other server, a CI runner, the Docker gateway). They are now counted in aggregates only (no event record each, kept in the snapshot) and never score an IP or enter threats, campaigns, sessions, maps, the blocklist, ban evidence, egress logic or visitor analytics. API: `totals.trusted`, `totals.internal`, `totals.requests_all` (`requests` plus both classes), `totals.counts.trusted` and `.internal`, and `own` in `/api/v1/summary` (status classes, timeline `series`, `origins`, `domains`, `paths`). The Traffic page has a new section "Own infrastructure and trusted origins". Probes need no change: the hub classifies. Tests `TestOwnTrafficIsCountedNeverAnalysed` and `TestOwnTrafficThroughFeed`.
|
||||
|
||||
### Fixed
|
||||
|
||||
- Long-range studies (15 and 30 days) no longer time out: with about 25,000 events a day over 30 days, period, report, campaigns, funnel and metrics took 6 to 19 s and came back `truncated` with partial families, techniques and campaigns. Closed days of the event registry are now decoded once and kept in memory (96 MB cap, invalidated by file size and modification time), the live day is read from the file, sessions are built in parallel and shared by period, funnel and metrics, and path normalisation is memoised. On the synthetic 30-day set (750,000 events, 2 hosts) all three views together went from 7.5 s cold and 5.1 s warm (about 16 s with a 256 MiB memory limit, truncated) to 3.7 s cold and 1.5 s warm under GOMEMLIMIT 256MiB, not truncated, about 200 MB heap. The dashboard shows a note when a study really hits a limit. Top targets with equal counts are now ordered by host too, so results are deterministic. Tests `TestDayCacheEqualsFullScan`, `TestDayCacheInvalidatesOnChange` and `BenchmarkStudy30d`.
|
||||
|
||||
## [2.2.2] - 2026-11-19
|
||||
|
||||
### Fixed
|
||||
|
||||
Reference in new issue
Block a user