You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add note that container's max_instances are not enforced locally (#23863)
* fix typos in wrangler config doc
* add note about max_instances not being enforced locally
* add note about `max_instances` in local dev docs
* Update src/content/docs/containers/local-dev.mdx
* Update src/content/docs/workers/wrangler/configuration.mdx
---------
Co-authored-by: Jun Lee <[email protected]>
Copy file name to clipboardExpand all lines: src/content/docs/containers/local-dev.mdx
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,8 @@ If your Worker app creates many container instances, your local machine may not
30
30
31
31
Additionally, if you regularly rebuild containers locally, you may want to clear
32
32
out old container images (using `docker image prune` or similar) to reduce disk used.
33
+
34
+
Also note that the `max_instances` configuration option is only enforced when running in production on Cloudflare's network. This limit does not apply during local development, so you may run more instances than specified.
- The maxiumum number of concurrent container instances you want to run. If you have more Durable Objects that
1097
+
- The maximum number of concurrent container instances you want to run. If you have more Durable Objects that
1098
1098
request to run a container than this number, the container request will error. You may have more Durable Objects
1099
1099
than this number over a longer time period, but you may not have more concurrently.
1100
1100
1101
+
- This value is only enforced when running in production on Cloudflare's network. This limit does not apply during local development, so you may run more instances than specified.
- Determines whether to enable containers during a local dev session, if they have been configured. Defaults to `true`. If set to `false`, you can develop the rest of your application without requiring Docker or other container tool, as long as you do not invoke any code that interacts with containers.
1229
+
- Determines whether to enable containers during a local dev session, if they have been configured. Defaults to `true`. If set to `false`, you can develop the rest of your application without requiring Docker or other container tool, as long as you do not invoke any code that interacts with containers.
0 commit comments