Skip to content

BEGIN_PUBLIC Fix Cache Mem leak & Build GCS-Sync GoodputCache for GoodputMonitor. END_PUBLIC#12

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_952245487
Open

BEGIN_PUBLIC Fix Cache Mem leak & Build GCS-Sync GoodputCache for GoodputMonitor. END_PUBLIC#12
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_952245487

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Jul 23, 2026

Copy link
Copy Markdown

BEGIN_PUBLIC Fix Cache Mem leak & Build GCS-Sync GoodputCache for GoodputMonitor. END_PUBLIC

This change mitigates the memory leak in cumulative monitoring by introducing a file-backed cache that is periodically synced to GCS. This keeps the in-memory timeline entries bounded while preserving the historical logs across disruptions and restarts.

  • Introduced GoodputCache to handle local file storage (JSONL format) and GCS uploads/downloads.
  • Updated GoodputCalculator to read/write from/to GoodputCache.
  • Updated GoodputMonitor to run periodic GCS syncs in the background worker.
  • Added cache_dir configuration to allow tests to isolate their cache directories, fixing test collision issues.
  • Fixed lint issues and documented new parameters.

…dputMonitor. END_PUBLIC

This change mitigates the memory leak in cumulative monitoring by introducing a file-backed cache that is periodically synced to GCS. This keeps the in-memory timeline entries bounded while preserving the historical logs across disruptions and restarts.

- Introduced GoodputCache to handle local file storage (JSONL format) and GCS uploads/downloads.
- Updated GoodputCalculator to read/write from/to GoodputCache.
- Updated GoodputMonitor to run periodic GCS syncs in the background worker.
- Added cache_dir configuration to allow tests to isolate their cache directories, fixing test collision issues.
- Fixed lint issues and documented new parameters.

PiperOrigin-RevId: 952245487
@copybara-service copybara-service Bot changed the title BEGIN_PUBLIC Fix Cache Mem leak & Build GCS-Sync-Cache for GoodputMonitor. END_PUBLIC BEGIN_PUBLIC Fix Cache Mem leak & Build GCS-Sync GoodputCache for GoodputMonitor. END_PUBLIC Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant