Skip to content

Load database before enforcing memory budget - #6658

Open
joshua-spacetime wants to merge 1 commit into
masterfrom
joshua/fix-db-load-memory-limit
Open

joshua-spacetime wants to merge 1 commit into
masterfrom
joshua/fix-db-load-memory-limit

Conversation

@joshua-spacetime

@joshua-spacetime joshua-spacetime commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

Description of Changes

Allow databases to finish loading when their resident memory footprint exceeds the configured limit. Suspend the hard limit throughout snapshot restoration, replay, index rebuilding, and remaining startup work, then restore enforcement and attempt eviction.

Eviction errors are logged without preventing startup. Databases that remain over budget reject new ordinary allocations.

Unify existing allocation exemptions under the same accounting path with scoped suspension.

API and ABI breaking changes

None.

Rollback safety impact

n/a

Expected complexity level and risk

3

Changes shared budget enforcement and the recovery lifecycle

Testing

Included in https://github.com/clockworklabs/SpacetimeDBPrivate/pull/4330.

This branch has not been deployed

No deployments
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