feat(producer): fan out capture across Cloudflare Sandboxes - #3260
Draft
tombeckenham wants to merge 1 commit into
Draft
feat(producer): fan out capture across Cloudflare Sandboxes#3260tombeckenham wants to merge 1 commit into
tombeckenham wants to merge 1 commit into
Conversation
Isolated remote Chromes beat the 25% wall-clock goal; extra local workers share one SwiftShader and get slower.
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.
What
Add a Cloudflare Sandbox adapter that fans
heygen-promo-preview-assetscapture across up to 10 isolated software-GL Chromes, plus a bench harness that measures wall-clock against the frozen producer baseline.Why
Local
--workers Nshares one SwiftShader and was slower on this fixture (+6.4% at 3 workers). Isolated remotes are the path that can actually cut wall-clock. Goal: beat 190,283 ms by 25% (≤ 142,712 ms).How
Thin wrapper around the existing
plan→renderChunk× N →assembleprimitives. Custom sandbox image (Chrome headless-shell + FFmpeg + Bun). Fleet pinned to account86bb57b655af7915f42b29dfc2d8807d,max_instances: 10,instance_type: standard-3. Plan runs remotely so FFmpeg versions match. Not the default localhyperframes renderpath.standard-2(1 vCPU) missed the bar (~239s).standard-3(2 vCPU) 3-run average 101,587 ms (−46.6%). PSNR 42.7–48.1 dB (bar 30).Test plan
cloudflareSandbox.test.ts— account pin, wrangler cap,resolveChunkPlan(480), mockedplan→renderChunk× N →assemble)tests/perf/goal.md,tests/perf/README.md)To reproduce: