Parity mvm - #696
Merged
Merged
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
breardon2011
marked this pull request as draft
August 27, 2026 22:37
breardon2011
marked this pull request as ready for review
August 27, 2026 23:15
motatoes
approved these changes
Aug 27, 2026
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.
MIcro-VM Lite Path (dormant)
What
Adds the MicroVM "lite" data plane (tunnel-free, CP in-region) and per-org runtime routing. Dormant on merge — no existing org or cell changes behavior.
Gates default off:
OPENSANDBOX_MICROVM_LITE != "1"(backend never registered),OPENSANDBOX_CREATE_TRACE != "1", andorgs.runtimedefaults'', which onlyworkerBackendaccepts → QEMU, as today. Migration 055 is additive (DEFAULT ''), auto-applied on CP boot.What is NOT dormant
Three changes hit the QEMU fleet prod-wide.
1. API-key validation is memoized (
internal/auth/apikey_cache.go). Every authenticated request cost two Postgres round trips — aSELECTplus an inlineUPDATE last_used— in front of the handler. Dev, burst-100:Server-Timingreadauth=309mson create,429mson exec, while the handler (tot) was 0ms.Tradeoff: a revoked API key keeps working up to 30s.
OPENSANDBOX_APIKEY_CACHE_TTL_MStunes it;0disables the cache.2.
last_usedupdates in a background goroutine, not on the hot path.3.
pgxpool MinConns5 → 20, so a burst stops stampeding connection setup.