debug(vtex): probe isolate reuse + per-request timing#428
Closed
viktormarinho wants to merge 1 commit intomainfrom
Closed
debug(vtex): probe isolate reuse + per-request timing#428viktormarinho wants to merge 1 commit intomainfrom
viktormarinho wants to merge 1 commit intomainfrom
Conversation
Wrap runtime.fetch with a request counter and isolate-age log so we can see in `wrangler tail` whether Workers is reusing isolates across requests. If `req#1 isolateAge=0` repeats on every call, the runtime cache can't stick and our perf fix needs a different shape. To revert after diagnosis. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
Author
|
abandoning workers migration, reverting to kubernetes-bun |
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.
Summary
Diagnostic — not for keeps. Wrap `runtime.fetch` in vtex's main.ts with a request counter and isolate-age log so we can see in `wrangler tail` whether Workers is reusing isolates across requests at GRU.
The runtime cache fix (decocms/studio#3300, vtex#427) is deployed but `tools/list` is still 4-7s on every call. Either:
This probe answers question 2.
Test plan
🤖 Generated with Claude Code
Summary by cubic
Adds a temporary debug probe that wraps
runtime.fetchinvtex/server/main.tsto log a per-request counter, isolate age, and request timing. This helps confirm Workers isolate reuse and diagnose whytools/liststays slow despite the cache fix.Written for commit 804a736. Summary will update on new commits.