# Scale and performance

agentMemory,
  cpuByNodes,
  joinByNodes,
  memoryByNodes,
  serverlessCpuByNodes,
  serverlessMemoryByNodes,
} from "../../lib/charts.ts";

## Control plane
  <GridTable subject="control" />

## Control plane as the cluster grows
  <div class="plots v1">
(a plot of measured values, drawn at https://runkite.io/docs/scale/)
(a plot of measured values, drawn at https://runkite.io/docs/scale/)
  </div>
  <div class="plots v2">
(a plot of measured values, drawn at https://runkite.io/docs/scale/)
(a plot of measured values, drawn at https://runkite.io/docs/scale/)
  </div>

Each node runs 30 Pods. The control plane's cost by node count is in
[Control plane costs](/docs/cost/).

## Pods
  <GridTable subject="pods" />

## Sandboxes
  <GridTable subject="sandboxes" />

A sandbox starts in capacity that its [pool](/docs/sandbox-pools/) already
holds, so creating one schedules no Pod and waits for no machine.
[Starts and wakes](/docs/sandbox-pools/#starts-and-wakes) names each kind of
start and what it waits for. A sleeping sandbox holds no CPU or memory.

## Nodes
  <GridTable subject="nodes" />

## Nodes as the cluster grows
  <div class="plots v1">
(a plot of measured values, drawn at https://runkite.io/docs/scale/)
(a plot of measured values, drawn at https://runkite.io/docs/scale/)
  </div>
  <div class="plots v2">
(a plot of measured values, drawn at https://runkite.io/docs/scale/)
(a plot of measured values, drawn at https://runkite.io/docs/scale/)
  </div>

Join time is how long every node takes to turn Ready when all of them join at
the same moment, as when a whole fleet starts together.

## Network
  <GridTable subject="network" />

## Tested sizes

- 5,000 nodes and 150,000 pods on a self-hosted Raft group of 3. This is one
  tested point, not two separate maximums.
- 5,000 simulated nodes on Cloudflare, on the cluster's Durable Object.

The control plane's cost on Cloudflare, by node count, is in
[Control plane costs](/docs/cost/). [Testing](/docs/testing/) says how Kite is tested
and what happens when a part fails.
