Skip to main content

Use a saved snapshot as a template

Do not install your stack on a new sandbox for each user. Build it once, save it as a saved snapshot, then start each user sandbox from it:
  1. Create a sandbox. Install the runtimes, the dependencies and your daemon.
  2. Save it: boat snapshot <id> <name>. The name keeps this exact disk, also when the source sandbox changes or is deleted.
  3. Start a sandbox for each user with boat new --from <name>. This takes a few seconds.
  • A sandbox from a saved snapshot gets the whole file system that you saved.
  • It is usable in seconds, at an almost constant cost, whatever the snapshot holds.
  • It does not get the environment of the source sandbox. Pass --environment or --no-env.
  • 10 saved snapshots are free. Read Saved snapshots for the price of more.
Do not use a stopped sandbox and boat fork as the template. A fork uses the newest snapshot of its source, so any later change to the source goes into the next fork. To update the template:
  1. Start a sandbox from it, or resume the source sandbox.
  2. Change it.
  3. Run boat snapshot <id> web-stack again. Sandboxes that you already started do not change.

Sizing

The number of concurrent sandboxes follows your daily active users, not your signups. A rough rule from platforms on boat: On a launch day, the peak is several times higher. Plan against two different limits: Create, fork and resume each count as one start. So pattern 3 uses starts each time a user comes back, not only at signup. An organization on the $2000 plan gets these limits times its number of seats. Below it, each extra seat adds 20%. Above a limit, a start fails with 429 rate_limited. The answer names the window that you hit. See Limits and errors.