Repository navigation
Bound hosted library growth on celld - #58
Merged
Merged
Conversation
Add covering indexes so artifact and script history listings stop reading every revision's source, reuse the latest serve event when a version reopens with unchanged state, and enable celld epoch retention for the local host and Docker image so idle-wake snapshots are deleted.
Reusing identical serve events stopped serve_count from counting hosted page views. Leave serve event semantics unchanged in this change.
A 60-second idle eviction made celld store two full copies of an object's database on every later wake. Leave idle eviction at celld's default so objects unload only under memory pressure.
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.
Hosted libraries kept getting slower and bigger as history accumulated, and the local celld host stored new full copies of each database over and over.
CELLD_IDLE_EVICT_S=60forartifacts hostand the Docker image. With it, every request after a minute of idle stored two full copies of the object's database (measured on celld 0.6.1: a 4 MiB database added 2 × 4113 KiB per wake). Without it, celld's default keeps idle objects resident and unloads them only under memory pressure; repeated requests add only small deltas.CELLD_LTX_RETENTION_SECS=3600for the local host and Docker image so celld deletes superseded copies from restarts and pressure evictions; without it celld keeps every copy. Docs cover both settings for local hosts and recommend retention for fleet nodes.Serve events and revision/compiled-bundle retention are unchanged.