Skip to content

Commit 7db67ae

Browse files
authored
docs: increase free-tier Worker size limit from 1MB to 3MB (#18400)
1 parent cf2816d commit 7db67ae

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/content/docs/workers/observability/errors.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ Specific error cases include but are not limited to:
205205

206206
#### Worker exceeded the upload size limit
207207

208-
A Worker can be up to 10 MB in size after compression on the Workers Paid plan, and up to 1 MB on the Workers Free plan.
208+
A Worker can be up to 10 MB in size after compression on the Workers Paid plan, and up to 3 MB on the Workers Free plan.
209209

210210
To reduce the upload size of a Worker, you should consider removing unnecessary dependencies and/or using Workers KV, a D1 database or R2 to store configuration files, static assets and binary data instead of attempting to bundle them within your Worker code.
211211

@@ -334,4 +334,4 @@ async function handleRequest(request) {
334334

335335
- [Log from Workers](/workers/observability/logs/) - Learn how to log your Workers.
336336
- [Logpush](/workers/observability/logs/logpush/) - Learn how to push Workers Trace Event Logs to supported destinations.
337-
- [RPC error handling](/workers/runtime-apis/rpc/error-handling/) - Learn how to handle errors from remote-procedure calls.
337+
- [RPC error handling](/workers/runtime-apis/rpc/error-handling/) - Learn how to handle errors from remote-procedure calls.

src/content/docs/workers/platform/limits.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { Render } from "~/components";
1717
| [Simultaneous outgoing<br/>connections/request](#simultaneous-open-connections) | 6 | 6 |
1818
| [Environment variables](#environment-variables) | 64/Worker | 128/Worker |
1919
| [Environment variable<br/>size](#environment-variables) | 5 KB | 5 KB |
20-
| [Worker size](#worker-size) | 1 MB | 10 MB |
20+
| [Worker size](#worker-size) | 3 MB | 10 MB |
2121
| [Worker startup time](#worker-startup-time) | 400 ms | 400 ms |
2222
| [Number of Workers](#number-of-workers)<sup>1</sup> | 100 | 500 |
2323
| Number of [Cron Triggers](/workers/configuration/cron-triggers/)<br/>per account | 5 | 250 |
@@ -245,7 +245,7 @@ Each environment variable has a size limitation of 5 KB.
245245

246246
## Worker size
247247

248-
A Worker can be up to 10 MB in size _after compression_ on the Workers Paid plan, and up to 1 MB on the Workers Free plan.
248+
A Worker can be up to 10 MB in size _after compression_ on the Workers Paid plan, and up to 3 MB on the Workers Free plan.
249249

250250
You can assess the size of your Worker bundle after compression by performing a dry-run with `wrangler` and reviewing the final compressed (`gzip`) size output by `wrangler`:
251251

@@ -334,4 +334,4 @@ Review other developer platform resource limits.
334334

335335
- [KV limits](/kv/platform/limits/)
336336
- [Durable Object limits](/durable-objects/platform/limits/)
337-
- [Queues limits](/queues/platform/limits/)
337+
- [Queues limits](/queues/platform/limits/)

src/content/docs/workflows/reference/limits.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Many limits are inherited from those applied to Workers scripts and as documente
1414

1515
| Feature | Workers Free | Workers Paid |
1616
| ----------------------------------------- | ----------------------- | --------------------- |
17-
| Workflow class definitions per script | 1MB max script size per [Worker size limits](/workers/platform/limits/#account-plan-limits) | 10MB max script size per [Worker size limits](/workers/platform/limits/#account-plan-limits)
17+
| Workflow class definitions per script | 3MB max script size per [Worker size limits](/workers/platform/limits/#account-plan-limits) | 10MB max script size per [Worker size limits](/workers/platform/limits/#account-plan-limits)
1818
| Total scripts per account | 100 | 500 (shared with [Worker script limits](/workers/platform/limits/#account-plan-limits) |
1919
| Compute time per step [^3] | 10 seconds | 30 seconds of [active CPU time](/workers/platform/limits/#cpu-time) |
2020
| Duration (wall clock) per step [^3] | Unlimited | Unlimited - for example, waiting on network I/O calls or querying a database |

0 commit comments

Comments
 (0)