From 227d21a4ecbb4eeae39432179d8171d97b82cdf8 Mon Sep 17 00:00:00 2001 From: Nikita Sharma Date: Mon, 14 Jul 2025 16:31:47 -0500 Subject: [PATCH 1/3] Add documentation for cutom instance types Add documentation to reflect wrangler change that adds support for custom instance types. --- .../docs/workers/wrangler/configuration.mdx | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/src/content/docs/workers/wrangler/configuration.mdx b/src/content/docs/workers/wrangler/configuration.mdx index 78b41f5ffe695b2..0030c5c78f97bd2 100644 --- a/src/content/docs/workers/wrangler/configuration.mdx +++ b/src/content/docs/workers/wrangler/configuration.mdx @@ -1133,6 +1133,37 @@ new_sqlite_classes = ["MyContainer"] +### Custom Instance Types + +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` + + - The vCPU to be used by your container. Defaults to 1/16 vCPU. + +- `memory_mib` + + - The memory to be used by your container, in MiB. Defaults to 256 MiB. + +- `disk_mb` + + - The disk to be used by your container, in MB. Defaults to 2GB. + + + +```toml title="wrangler.toml" +[[containers]] +image = "./Dockerfile" +instance_type = { vcpu = 1, memory_mib = 1024, disk_mb = 4000 } +``` + + + ## Bundling :::note From f3235e0a2fc52a0c24851ee040e2788e8bca5987 Mon Sep 17 00:00:00 2001 From: Nikita Sharma <54369599+nikitassharma@users.noreply.github.com> Date: Tue, 5 Aug 2025 08:57:45 -0500 Subject: [PATCH 2/3] Apply suggestions from code review Co-authored-by: emily-shen <69125074+emily-shen@users.noreply.github.com> --- src/content/docs/workers/wrangler/configuration.mdx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/content/docs/workers/wrangler/configuration.mdx b/src/content/docs/workers/wrangler/configuration.mdx index 0030c5c78f97bd2..6ee458da65d6cda 100644 --- a/src/content/docs/workers/wrangler/configuration.mdx +++ b/src/content/docs/workers/wrangler/configuration.mdx @@ -1135,7 +1135,9 @@ new_sqlite_classes = ["MyContainer"] ### 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. @@ -1144,15 +1146,15 @@ The following options are available: - `vcpu` - - The vCPU to be used by your container. Defaults to 1/16 vCPU. + - The vCPU to be used by your container. Defaults to `0.0625` (1/16 vCPU). - `memory_mib` - - The memory to be used by your container, in MiB. Defaults to 256 MiB. + - The memory to be used by your container, in MiB. Defaults to `256`. - `disk_mb` - - The disk to be used by your container, in MB. Defaults to 2GB. + - The disk to be used by your container, in MB. Defaults to `2000` (2GB). From ffa6eccc365aedb74a7b43e1456b6d07d28cc396 Mon Sep 17 00:00:00 2001 From: Nikita Sharma Date: Tue, 5 Aug 2025 09:10:56 -0500 Subject: [PATCH 3/3] link to custom instance types --- src/content/docs/workers/wrangler/configuration.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/content/docs/workers/wrangler/configuration.mdx b/src/content/docs/workers/wrangler/configuration.mdx index 3f623c7db442402..7479e0c63baf573 100644 --- a/src/content/docs/workers/wrangler/configuration.mdx +++ b/src/content/docs/workers/wrangler/configuration.mdx @@ -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`