Package Eviction#453
Open
ashRong wants to merge 4 commits into
Open
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.