[Workers] update size and startup limits in platform/limits.md - #6613
Merged
Conversation
kabirsikand
approved these changes
Nov 9, 2022
| | [Environment variable<br/>size](#environment-variables) | 5 KB | 5 KB | | ||
| | [Worker size](#worker-size) | 1 MB | 1 MB | | ||
| | [Worker size](#worker-size) | 1 MB | 5 MB | | ||
| | [Worker startup time](#worker-startup-time) | 200ms | 200ms | |
Contributor
There was a problem hiding this comment.
Suggested change
| | [Worker startup time](#worker-startup-time) | 200ms | 200ms | | |
| | [Worker startup time](#worker-startup-time) | 200 ms | 200 ms | |
|
|
||
| ### Worker startup time | ||
|
|
||
| A Worker must be able to be parsed and execute its global scope (e.g. top-level code outside of your "fetch" handler) within 200ms. Script size can impact startup, as there's more code to parse and evaluate. Avoiding expensive code in the global scope can keep startup snappy as well. You can request adjustments to limits that conflict with your project goals by contacting Cloudflare. To increase a limit, complete the [Limit Increase Request Form](https://forms.gle/ukpeZVLWLnKeixDu7). |
Contributor
There was a problem hiding this comment.
Suggested change
| A Worker must be able to be parsed and execute its global scope (e.g. top-level code outside of your "fetch" handler) within 200ms. Script size can impact startup, as there's more code to parse and evaluate. Avoiding expensive code in the global scope can keep startup snappy as well. You can request adjustments to limits that conflict with your project goals by contacting Cloudflare. To increase a limit, complete the [Limit Increase Request Form](https://forms.gle/ukpeZVLWLnKeixDu7). | |
| A Worker must be able to be parsed and execute its global scope (top-level code outside of your `fetch` handler) within 200 ms. Script size can impact startup because there is more code to parse and evaluate. Avoiding expensive code in the global scope can keep startup efficient. You can request adjustments to limits that conflict with your project goals by contacting Cloudflare. To increase a limit, complete the [Limit Increase Request Form](https://forms.gle/ukpeZVLWLnKeixDu7). |
Contributor
There was a problem hiding this comment.
Was 'eg' supposed to be 'for example' or 'that is' in this context? We don't use Latin shorthand in docs. Also, checking to see if 'expensive' code is intentional? Or is it supposed to be 'expansive code' - as in large?
Contributor
Author
There was a problem hiding this comment.
- for 'e.g.' - both definitions make sense, but I removed it for clarity
- for 'expensive' - that was intentional. code that costs a lot of cpu or memory to execute
matthewdavidrodgers
force-pushed
the
workers-size-and-startup
branch
from
November 11, 2022 16:25
7aacc2a to
62b23f7
Compare
Deploying with
|
| Latest commit: |
62b23f7
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://4a31a024.cloudflare-docs-7ou.pages.dev |
| Branch Preview URL: | https://workers-size-and-startup.cloudflare-docs-7ou.pages.dev |
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.
Updates max worker size for free and paid customers
And adds documentation for script startup limits