Skip to content

Package Eviction#453

Open
ashRong wants to merge 4 commits into
open-lambda:mainfrom
ashRong:main
Open

Package Eviction#453
ashRong wants to merge 4 commits into
open-lambda:mainfrom
ashRong:main

Conversation

@ashRong
Copy link
Copy Markdown

@ashRong ashRong commented May 11, 2026

No description provided.

arong and others added 4 commits March 6, 2026 17:36
Add configurable maximum size limit for the packages directory:
- New Pkgs_max_size config field (MB, 0 = unlimited) with validation
- DirSize helper to compute directory size recursively
- Track per-package size, InstallTime, and LastAccessed after install
- Seed totalSize from existing packages on PackagePuller init
- Expose packages.total-size-bytes gauge via /stats endpoint
- Unit tests for DirSize helper

This lays the groundwork for future package eviction when the
configured size limit is exceeded.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Track function and package references for installed packages,
release those references during function and import-cache cleanup,
and move eviction into a dedicated PackageEvictor type.

The new evictor runs asynchronously from kill-chain signals,
enforces Pkgs_max_size using cascading dependency-aware eviction,
and keeps package installation logic separate from eviction policy.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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