Limits and Instance Types
import { Render } from "~/components";
:::note All instance size maximums and account limits on this page are defaults and can be increased. To request higher limits, contact your account team or Cloudflare Support. :::
Instance Types
The memory, vCPU, and disk space for Containers are set through instance types. You can use one of six predefined instance types or configure a custom instance type.
For an application that uses the default scheduling policy, specify the size with the instance_type property in your Worker's Wrangler configuration file. For the durable_object policy, pass the named size to ctx.container.start() with the runtime instance property.
:::note
The dev and standard instance types are preserved for backward compatibility and are aliases for lite and standard-1, respectively.
:::
Custom Instance Types
In addition to the predefined instance types, you can configure custom instance types. Field names depend on where you configure the size. Wrangler configuration for the default policy uses vcpu, memory_mib, and disk_mb. A ctx.container.start() call for the durable_object policy uses vcpu, memoryMib, and diskMb.
Refer to the Wrangler configuration documentation or scheduling policy documentation for examples.
Custom instance types have the following constraints:
| Resource | Limit |
|---|---|
| Minimum vCPU | 1 |
| Maximum vCPU | 4 |
| Maximum Memory | 12 GiB |
| Maximum Disk | 20 GB |
| Memory to vCPU ratio | Minimum 3 GiB memory per vCPU |
For workloads requiring less than 1 vCPU, use the predefined instance types such as lite or basic.
Account limits
The following limits apply per account:
| Resource | Limit |
|---|---|
| Concurrent memory | 6 TiB |
| Concurrent vCPU | 1,500 |
| Concurrent disk | 30 TB |
| Image size | Same as instance disk space |
| Total image storage per account | 50 GB [^1] |
[^1]: Delete container images with wrangler containers delete to free up space. If you delete a container image and then roll back your Worker to a previous version, this version may no longer work.
Outbound HTTP request body size
Cloudflare limits each HTTP request body forwarded from a Container to an external service through an outbound handler to 100 MiB by default.
For upload failures, refer to Troubleshoot outbound uploads.
Snapshot limits
The following limits apply to Container snapshots:
| Resource | Limit |
|---|---|
| Maximum snapshot size | 20 GB |
| Snapshot retention | 30 days from creation or the most recent restore |
Restoring a snapshot refreshes its 30-day time-to-live.
谢谢你的反馈!