Skip to main content
CPU workloads can choose a capacity tier: See current rates. New accounts default to Performance, and workloads opt into Shared or Spot; omitting the tier keeps an existing account’s default. When Performance capacity is full, Performance workloads may run on Shared hosts, still with no CPU sharing. GPU workloads and private pools keep their own pricing and placement. Tiered VMs and VM-backed sandboxes require at least 1 vCPU / 1 GiB. Ordinary containers support fractional resources. Requires beam-client >= 0.2.236 or @beamcloud/beam-js >= 1.1.7.

Choosing Compute Capacity

For GPU workloads, see GPU Acceleration for serverless availability and Compute Pools for reserved GPU hardware.

Configuring a CPU Tier

Functions, Endpoints, and Deployments

Pass cpu_tier in Python decorators, cpuTier in JavaScript, or --cpu-tier in CLI deployments:

Virtual Machines

  • Python: VM("devbox", cpu_tier="shared", cpu=4, memory=8192).create()
  • JavaScript: VM.create({ name: "devbox", cpuTier: "shared", cpu: 4, memory: 8192 })
Change a VM’s tier only while stopped (beam vm update devbox --cpu-tier performance, vm.update(cpu_tier="performance"), or vm.update({ cpuTier: "performance" })). The new tier applies from the next start at its current rates, while past usage keeps its original prices. Forks inherit the tier and start at current rates. See VM Configuration.

Sandboxes

  • Python: Sandbox(cpu_tier="shared", cpu=2, memory="2Gi")
  • JavaScript: new Sandbox({ name: "dev", cpuTier: "shared", cpu: 2, memory: "2Gi" })
VM-backed sandboxes require at least 1 vCPU / 1 GiB; omitted memory defaults to 1 GiB for a tiered VM-backed sandbox, and explicit requests below the minimum are rejected. See Sandbox Configuration.

Spot Interruption Behavior

Spot work waits for spare capacity instead of adding machines and may be interrupted with 30 seconds’ notice:
  • Functions and sandboxes: Fail if no spare capacity frees up within 20 minutes. Spot functions retry interruptions within their configured retry limit. Spot sandboxes terminate when reclaimed; persistent mounts survive, while process state and temporary files do not.
  • Deployments and HTTP endpoints: Keep trying while they have requests, queued tasks, or min_containers, and replace interrupted containers the same way. Interrupted HTTP requests fail; Beam does not transparently replay them, so set application timeouts and retries for your requests.
  • Virtual machines: Receive a 30-second graceful shutdown window on preemption. The disk and URLs remain, while memory is lost. Start a preempted VM explicitly with beam vm start <name>; incoming traffic does not restart it. Check VM details for the preemption reason.

Pricing and Rate Locking

A workload keeps its tier’s prices from its first run, even if rates change later; a new deployment starts at current rates. GPU-attached CPU and RAM keep the GPU rates. See Pricing and Billing and the pricing page for current rates.