• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Logflare / logflare / fdc5bff0f9a3067aecdcb65a12d2fbf33531271d-PR-3582
81%
main: 81%

Build:
Build:
LAST BUILD BRANCH: feat/id_passing_bigquery
DEFAULT BRANCH: main
Ran 10 Jun 2026 04:01PM UTC
Jobs 1
Files 484
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Jun 2026 03:48PM UTC coverage: 80.982% (+0.01%) from 80.968%
fdc5bff0f9a3067aecdcb65a12d2fbf33531271d-PR-3582

Pull #3582

github

djwhitt
perf: reduce user-metrics puller memory spikes

The user-metrics pull pipeline buffers metrics in an ETS generation and
drains a whole sealed generation into the Broadway pipeline in one step.
With an ~8-10 min export_period and max_demand tied to batch_size, each
drain materializes a large batch of ETS rows into Elixir maps at once,
producing a sharp spike in process memory that scales with metrics volume.

Reshape the drain into a smaller, more frequent, GC-friendly flow:

- Shorten export_period from ~8-10 min to ~30-45s so each generation (and
  thus each drain) is far smaller, trimming runs more often, and the
  post-boot accumulation window before the first drain shrinks accordingly.
- Decouple processor max_demand from batch_size and set it to 250, directly
  bounding the number of rows materialized per drain step.
- Add hibernate_after and spawn_opt fullsweep_after to the Broadway pipeline
  (matching the other ingest pipelines) so the idle producer and processors
  reclaim transient heap and refc binaries between drains.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Pull Request #3582: perf: reduce user-metrics puller memory spikes

2 of 3 new or added lines in 2 files covered. (66.67%)

2 existing lines in 1 file now uncovered.

12996 of 16048 relevant lines covered (80.98%)

3765.35 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
75.0
0.0% lib/logflare/backends/user_monitoring.ex

Coverage Regressions

Lines Coverage ∆ File
2
74.36
-5.13% lib/logflare/sources/counters.ex
Jobs
ID Job ID Ran Files Coverage
1 fdc5bff0f9a3067aecdcb65a12d2fbf33531271d-PR-3582.1 10 Jun 2026 04:01PM UTC 484
80.98
GitHub Action Run
Source Files on build fdc5bff0f9a3067aecdcb65a12d2fbf33531271d-PR-3582
  • Tree
  • List 484
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #3582
  • PR Base - main (#1A7690A6...)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc