docs: add infra-layer cost optimization options - #66
Open
ai-yappa[bot] wants to merge 1 commit into
Open
ai-yappa[bot] wants to merge 1 commit into
ai-yappa[bot] wants to merge 1 commit into
Conversation
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
Adds an infra-layer cost optimization section to
PRODUCTION_READINESS.md, grounded in the currentwrangler.tomland worker runtime code.Why
The thread asked: "if we need to do cost optimization at infra layer, what are our options?" This documents the options against the deployment as it actually is today, and moves the P0 item ("document capacity limits, expected Cloudflare costs, and safe defaults") forward.
Contents
instance_type = "standard-3",max_instances = 5,sleepAfter = "10m"override,keepAlive = truehead_sampling_rateon logs + traces), Worker/assets (run_worker_first = truebills every asset fetch), CI (full sandbox image build per PR)max_idle_timeis persisted but never enforced;max_cost/max_stepsare legacy columns onlysleepAfter+ scope keep-alive to active runsrun_worker_firstor serve the SPA from Pagesdeepseek-v4-flashdefault already in place)Notes
docs/is git-ignored in this repo (only force-addedsuperpowersartifacts live there), so the content lives in the trackedPRODUCTION_READINESS.mdinstead of a new doc file.