Skip to content

An open-source, faster Devin alternative

TypeScript

docs(microvm): offer 1GB and present sizes as a map onto the current runtime's tiers — 1/4/8GB carry over, 2GB is new, 16GB has no equivalent; the sub-2048 publish warning is expected for the 1GB tier since the current 1GB tier is already best-effort CPU, so it is not a regression

Brian Reardonc1c9417a773d
diff --git a/deploy/microvm/SIZE-TIERS.md b/deploy/microvm/SIZE-TIERS.md
index dad2b1b9..a153a483 100644
--- a/deploy/microvm/SIZE-TIERS.md
+++ b/deploy/microvm/SIZE-TIERS.md
@@ -35,16 +35,27 @@ MICROVM_IMAGE_MEMORY_MB=8192 \
`publish.sh` polls until the build leaves `CREATING` and prints `latestActiveImageVersion`.
A tier is not usable until that appears.
-### Memory floor
+### Tiers we offer, and the sub-2048 warning
-`MICROVM_IMAGE_MEMORY_MB` defaults to **2048**, and the script warns below it:
+Publish these to mirror the current runtime's tiers as closely as the platform allows:
+
+| Tier | Why |
+|---|---|
+| 1024 | matches the current 1 GB tier, which is already documented as best-effort CPU |
+| 2048 | smallest size that reliably gets a full vCPU |
+| 4096 | the default; also the only pooled tier |
+| 8192 | matches the current 8 GB tier, and is the platform ceiling |
+
+There is no 16384 — the current runtime's 16 GB tier has no equivalent here.
+
+`publish.sh` **warns** when `MICROVM_IMAGE_MEMORY_MB` is below 2048:
> 2048 MiB is the smallest baseline that still gets a full vCPU under Lambda's baseline-peak
-> model, and peak scales to 4x it. Keep that as the floor — below it a box may not get a full
-> vCPU, and there is no way to ask for one.
+> model, and peak scales to 4x it.
-512 and 1024 tiers are publishable but should be treated as unsupported: CPU is allocated as a
-function of memory, so a sub-2048 tier may not get a full vCPU and nothing can compensate.
+That warning is **expected and safe to ignore for the 1024 tier**. CPU is allocated as a
+function of memory, so a 1 GB box gets best-effort CPU — which is exactly what the current
+runtime's 1 GB tier already provides, so it is not a regression. Do not publish below 1024.
### Naming
diff --git a/docs/microvm/migrate.mdx b/docs/microvm/migrate.mdx
index 113dfa95..d36a1a85 100644
--- a/docs/microvm/migrate.mdx
+++ b/docs/microvm/migrate.mdx
@@ -21,9 +21,9 @@ Most workloads are unaffected. These seven are what separate the two cases:
See [Checkpoints](/microvm/checkpoints).
</Step>
<Step title="Does any sandbox need more than 8 GB of memory?">
- 8 GB is the largest size the platform offers, and memory cannot be changed after launch.
- If you run bigger sandboxes today, that work needs to fit in 8 GB or be split up. See
- [Sandbox sizes](/microvm/sizes).
+ The 1 GB, 4 GB and 8 GB tiers carry over, but there is **no 16 GB tier** and memory cannot
+ be changed after launch. If you run 16 GB sandboxes today, that work needs to fit in 8 GB or
+ be split up. See [Sandbox sizes](/microvm/sizes).
</Step>
<Step title="Do you use templates built on the current runtime?">
diff --git a/docs/microvm/not-supported.mdx b/docs/microvm/not-supported.mdx
index 7d8b494f..baf9be94 100644
--- a/docs/microvm/not-supported.mdx
+++ b/docs/microvm/not-supported.mdx
@@ -41,7 +41,7 @@ These are gaps in our implementation, not the platform's.
| **Hibernate** | Suspends in place; hibernated time counts against the lifetime ceiling. |
| **Org halt** | Archives the filesystem and releases the host, rather than parking the sandbox. |
| **Idle timeout** | Clamped to the lifetime ceiling; the response tells you whether it was applied. |
-| **Sizes** | Fixed steps (2 GB – 8 GB, default 4 GB), and only the tiers published in your region. Anything else is refused with the list that exists. |
+| **Sizes** | Fixed steps (1–8 GB, default 4 GB), and only the tiers published in your region. No 16 GB tier. Anything else is refused with the list that exists. |
## If something here blocks you
diff --git a/docs/microvm/sdk-differences.mdx b/docs/microvm/sdk-differences.mdx
index b7d08eab..4e469195 100644
--- a/docs/microvm/sdk-differences.mdx
+++ b/docs/microvm/sdk-differences.mdx
@@ -31,7 +31,7 @@ connection pool captured the upgrade, and WebSockets cannot be negotiated over H
| `sandbox.hibernate()` | Suspends in place. The time still counts against the 8-hour ceiling. |
| `sandbox.restoreCheckpoint(id)` | Restores files onto a fresh boot — no live process state. |
| `sandbox.setTimeout(seconds)` | Clamped to the lifetime ceiling; check `applied` in the response. |
-| `Sandbox.create({ memoryMB })` | Fixed steps up to 8 GB, and only tiers published in your region; anything else is refused with the list. |
+| `Sandbox.create({ memoryMB })` | Fixed steps 1–8 GB, and only tiers published in your region; anything else is refused with the list. |
| `Sandbox.create({ cpuCount })` | Accepted, but not a control — CPU is allocated with memory. |
| `Sandbox.create({ diskMB })` | Not a control here; disk comes from the image. |
diff --git a/docs/microvm/sizes.mdx b/docs/microvm/sizes.mdx
index 5de4195b..92218f9e 100644
--- a/docs/microvm/sizes.mdx
+++ b/docs/microvm/sizes.mdx
@@ -12,23 +12,25 @@ fixed list rather than any number you like, and a size cannot change after launc
## Sizes the platform supports
-Memory belongs to the image, so a size only exists if we have published an image for it. The
-practical range is **2 GB to 8 GB**, in these steps:
+Memory belongs to the image, so a size exists only if we have published an image for it. The
+sizes mirror the current runtime's tiers as closely as the platform allows:
-| Memory | |
-|---|---|
-| 2048 MB | smallest size that reliably gets a full vCPU |
-| **4096 MB** | **default** — the only size served from the warm pool |
-| 8192 MB | largest available |
+| Memory | On the current runtime | On MicroVM |
+|---|---|---|
+| 1 GB | 1 vCPU (best-effort) | same — CPU is best-effort at this size |
+| 2 GB | — | available (no equivalent tier today) |
+| **4 GB** | 1 vCPU | **default**, and the only size served from the warm pool |
+| 8 GB | 2 vCPU | available |
+| 16 GB | 4 vCPU | **not available** — 8 GB is the ceiling |
<Note>
-This is a set of steps, not a range. `3072` is not a size — it is either published or it is not,
-and nothing in between exists. 8 GB is the ceiling.
+These are steps, not a range. `3072` is not a size — a tier is either published or it is not,
+and nothing in between exists.
</Note>
-Smaller images (1024 MB and below) are technically publishable but we do not offer them: CPU is
-allocated as a function of memory, so below 2 GB a sandbox may not get a full vCPU and there is
-no way to ask for one.
+The one gap is **16 GB**. If you run 16 GB sandboxes today, that work has to fit in 8 GB or be
+split before you migrate — memory cannot be raised after launch either. See
+[Prepare to migrate](/microvm/migrate).
## Disk
diff --git a/docs/microvm/whats-different.mdx b/docs/microvm/whats-different.mdx
index 07b6a40e..3ae4ee3e 100644
--- a/docs/microvm/whats-different.mdx
+++ b/docs/microvm/whats-different.mdx
@@ -15,7 +15,7 @@ Everything not listed here behaves identically, and the same SDK code runs on bo
| Hibernate | checkpoint to storage, wake anywhere | suspend in place |
| Hibernated time | does not count against a lifetime | **counts against the 8 hours** |
| Resize a running sandbox | supported | not supported |
-| Sizes | any memory value at create | fixed steps, 2 GB – 8 GB, default 4 GB |
+| Sizes | any memory value at create | fixed steps, 1–8 GB, default 4 GB; no 16 GB |
| CPU | selectable via `cpuCount`, scales with memory | allocated by the platform; `cpuCount` is not a control |
| Disk | 20 GB default, up to 256 GB via `diskMB` | **fixed ~16 GB**; `diskMB` is ignored |
| Existing templates | work | **refused if they carry a rootfs** — most do |
@@ -34,10 +34,10 @@ not a quota we can raise, and it counts hibernated time. A sandbox you hibernate
does not come back in the morning. If you have work that assumes a long-lived box, read
[Sandbox lifetime](/microvm/lifetime) before anything else.
-**Memory tops out at 8 GB** and cannot be changed after launch. On the current runtime you ask
-for whatever you need and can resize later; here the sizes are a fixed enum and the largest is
-8 GB. CPU is no longer selectable either — `cpuCount` is accepted but does not size the sandbox.
-See [Sandbox sizes](/microvm/sizes).
+**Memory tops out at 8 GB** and cannot be changed after launch. The 1 GB, 4 GB and 8 GB tiers
+carry over; the 16 GB tier does not exist here, and there is no resizing to fall back on. CPU is
+no longer selectable either — `cpuCount` is accepted but does not size the sandbox. See
+[Sandbox sizes](/microvm/sizes).
**Checkpoints don't capture memory.** If you use checkpoints to freeze a warmed-up process —
a loaded model, an open connection pool, a debugger mid-session — restoring will not give that