Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions src/content/docs/workers/wrangler/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1091,6 +1091,8 @@ The following options are available:
- The instance type of the container. This determines the amount of memory, CPU, and disk given to the container
instance. The current options are `"dev"`, `"basic"`, and `"standard"`. The default is `"dev"`. For more information,
the see [instance types documentation](/containers/platform-details#instance-types).

- To specify a custom instance type, see [here](#custom-instance-types).

- `max_instances` <Type text="string" /> <MetaInfo text="optional" />

Expand Down Expand Up @@ -1134,6 +1136,39 @@ new_sqlite_classes = ["MyContainer"]

</WranglerConfig>

### Custom Instance Types

:::note
For Enterprise customers only.
:::

In place of the [named instance types](/containers/platform-details#instance-types), you can set a custom instance type by
individually configuring vCPU, memory, and disk.

The following options are available:

- `vcpu` <Type text="number" /> <MetaInfo text="optional" />

- The vCPU to be used by your container. Defaults to `0.0625` (1/16 vCPU).

- `memory_mib` <Type text="number" /> <MetaInfo text="optional" />

- The memory to be used by your container, in MiB. Defaults to `256`.

- `disk_mb` <Type text="number" /> <MetaInfo text="optional" />

- The disk to be used by your container, in MB. Defaults to `2000` (2GB).

<WranglerConfig>

```toml title="wrangler.toml"
[[containers]]
image = "./Dockerfile"
instance_type = { vcpu = 1, memory_mib = 1024, disk_mb = 4000 }
```

</WranglerConfig>

## Bundling

:::note
Expand Down
Loading