woikos
4522081506
Go / build-and-release (push) Waiting to run
Fix memory exhaustion from concurrent Badger queries (v0.52.17)
...
- Add query semaphore limiting concurrent database queries to 3
- Reuse single iterator in FetchEventsBySerials instead of one per serial
- Disable expensive e-tag fallback lookup in deletion processing
- Add empty ID validation in access tracker loop
- Reduce log spam from GetSerialById empty ID errors
These changes reduce memory usage from ~5GB to ~150MB under load by
limiting concurrent Badger iterators which consume significant memory.
Files modified:
- pkg/database/database.go: Add query semaphore with acquire/release
- pkg/database/fetch-events-by-serials.go: Reuse iterator for sev lookups
- pkg/database/query-events.go: Add semaphore, disable e-tag fallback
- pkg/database/get-serial-by-id.go: Don't log empty ID errors
- app/handle-req.go: Validate event ID before GetSerialById
- pkg/version/version: Bump to v0.52.17
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-21 17:23:30 +01:00
..
2026-01-07 03:40:12 +01:00
2026-01-14 08:09:39 +01:00
2025-11-23 08:15:06 +00:00
2026-01-02 19:35:16 +01:00
2025-11-23 08:15:06 +00:00
2025-12-23 14:47:50 +01:00
2025-12-02 07:51:59 +00:00
2025-12-03 12:31:25 +00:00
2026-01-09 11:46:36 +01:00
2025-12-03 20:49:49 +00:00
2025-12-03 21:24:43 +00:00
2025-12-03 12:31:25 +00:00
2026-01-14 19:19:33 +01:00
2026-01-21 17:23:30 +01:00
2025-12-03 12:31:25 +00:00
2025-12-03 12:31:25 +00:00
2025-11-23 08:15:06 +00:00
2025-12-04 09:28:13 +00:00
2025-12-25 05:30:07 +01:00
2026-01-03 07:17:48 +01:00
2025-12-29 02:18:05 +02:00
2026-01-06 06:50:58 +01:00
2025-12-25 05:30:07 +01:00
2026-01-06 05:51:34 +01:00
2026-01-21 17:23:30 +01:00
2025-11-26 21:16:46 +00:00
2025-12-03 12:31:25 +00:00
2025-12-03 12:31:25 +00:00
2025-11-23 08:15:06 +00:00
2025-12-25 06:03:53 +01:00
2025-11-23 08:15:06 +00:00
2026-01-14 08:09:39 +01:00
2025-12-25 05:30:07 +01:00
2026-01-21 17:23:30 +01:00
2025-12-25 05:30:07 +01:00
2025-12-03 12:31:25 +00:00
2026-01-05 21:42:17 +01:00
2025-12-04 09:28:13 +00:00
2025-12-04 09:28:13 +00:00
2025-12-04 09:28:13 +00:00
2025-12-04 09:28:13 +00:00
2026-01-05 21:42:17 +01:00
2025-12-04 09:28:13 +00:00
2025-12-04 09:28:13 +00:00
2025-12-04 09:28:13 +00:00
2025-12-03 12:31:25 +00:00
2025-12-11 21:36:39 +01:00
2025-12-12 08:47:25 +01:00
2025-12-05 14:42:22 +00:00
2026-01-02 19:35:16 +01:00
2025-12-03 12:31:25 +00:00
2025-12-25 06:25:21 +01:00
2025-12-25 06:25:21 +01:00
2025-12-03 12:31:25 +00:00
2025-12-03 12:31:25 +00:00
2026-01-05 21:42:17 +01:00
2025-11-09 10:41:58 +00:00
2025-12-03 12:31:25 +00:00
2026-01-19 05:29:21 +01:00
2025-11-02 18:19:52 +00:00
2025-12-03 12:31:25 +00:00
2025-11-20 09:16:54 +00:00
2025-11-20 09:16:54 +00:00
2025-11-20 05:13:56 +00:00
2025-12-25 05:30:07 +01:00
2025-12-03 12:31:25 +00:00
2025-12-25 05:30:07 +01:00
2025-12-25 05:30:07 +01:00
2025-11-23 08:15:06 +00:00
2026-01-21 17:23:30 +01:00
2025-12-25 05:30:07 +01:00
2025-12-25 05:30:07 +01:00
2025-12-03 12:31:25 +00:00
2025-12-25 05:30:07 +01:00
2025-12-03 12:31:25 +00:00
2025-12-25 05:30:07 +01:00
2025-12-25 05:30:07 +01:00
2025-12-25 05:30:07 +01:00
2025-12-25 05:30:07 +01:00
2025-11-23 08:15:06 +00:00
2025-12-03 12:31:25 +00:00
2025-12-01 18:21:38 +00:00
2025-12-03 12:31:25 +00:00
2025-12-25 05:30:07 +01:00
2025-12-01 18:21:38 +00:00
2025-12-25 06:03:53 +01:00
2026-01-06 05:51:34 +01:00
2025-08-31 16:52:24 +01:00
2025-12-03 12:31:25 +00:00
2025-12-25 05:30:07 +01:00
2026-01-07 03:40:12 +01:00
2025-12-22 18:53:30 +01:00
2025-12-03 12:31:40 +00:00
2025-12-22 18:53:30 +01:00
2026-01-07 03:40:12 +01:00
2025-12-22 18:53:30 +01:00
2025-12-27 16:32:48 +02:00