Skip to content

Commit fc938d8

Browse files
nikitassharmaemily-shen
authored andcommitted
[Containers] document custom instance types in configuration.mdx (#23674)
* Add documentation for cutom instance types Add documentation to reflect wrangler change that adds support for custom instance types. * Apply suggestions from code review Co-authored-by: emily-shen <[email protected]> * link to custom instance types --------- Co-authored-by: emily-shen <[email protected]>
1 parent c204287 commit fc938d8

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

src/content/docs/workers/wrangler/configuration.mdx

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,6 +1091,8 @@ The following options are available:
10911091
- The instance type of the container. This determines the amount of memory, CPU, and disk given to the container
10921092
instance. The current options are `"dev"`, `"basic"`, and `"standard"`. The default is `"dev"`. For more information,
10931093
the see [instance types documentation](/containers/platform-details#instance-types).
1094+
1095+
- To specify a custom instance type, see [here](#custom-instance-types).
10941096

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

@@ -1134,6 +1136,39 @@ new_sqlite_classes = ["MyContainer"]
11341136

11351137
</WranglerConfig>
11361138

1139+
### Custom Instance Types
1140+
1141+
:::note
1142+
For Enterprise customers only.
1143+
:::
1144+
1145+
In place of the [named instance types](/containers/platform-details#instance-types), you can set a custom instance type by
1146+
individually configuring vCPU, memory, and disk.
1147+
1148+
The following options are available:
1149+
1150+
- `vcpu` <Type text="number" /> <MetaInfo text="optional" />
1151+
1152+
- The vCPU to be used by your container. Defaults to `0.0625` (1/16 vCPU).
1153+
1154+
- `memory_mib` <Type text="number" /> <MetaInfo text="optional" />
1155+
1156+
- The memory to be used by your container, in MiB. Defaults to `256`.
1157+
1158+
- `disk_mb` <Type text="number" /> <MetaInfo text="optional" />
1159+
1160+
- The disk to be used by your container, in MB. Defaults to `2000` (2GB).
1161+
1162+
<WranglerConfig>
1163+
1164+
```toml title="wrangler.toml"
1165+
[[containers]]
1166+
image = "./Dockerfile"
1167+
instance_type = { vcpu = 1, memory_mib = 1024, disk_mb = 4000 }
1168+
```
1169+
1170+
</WranglerConfig>
1171+
11371172
## Bundling
11381173

11391174
:::note

0 commit comments

Comments
 (0)