Capacity planning
Choose an appropriately sized database compute for an application's workload.
Neon · Const
Compute Units (CUs) measure the size and processing capacity of a Neon compute. Each CU provides approximately 4 GB of RAM plus associated CPU and local SSD resources.
Compute Units (CUs) express the size and processing capacity of a Neon compute. Each CU provides approximately 4 GB of RAM plus associated CPU and local SSD resources, so increasing the CU value scales these resources linearly.
const computeUnits = 1;
const ramGb = computeUnits * 4;
console.log(`${computeUnits} CU provides approximately ${ramGb} GB RAM`);Calculates the approximate RAM associated with a one-CU compute.
Choose an appropriately sized database compute for an application's workload.
Increase compute capacity when a workload needs more processing power or memory.
Estimate compute usage by combining a compute's CU size with its active runtime.
A Compute Unit is Neon's measure of compute size and processing capacity. One CU provides approximately 4 GB of RAM, together with associated CPU and local SSD resources.
Follow-up: How does increasing the CU value affect resources? It scales the allocated RAM, CPU, and local SSD resources linearly.
A compute's size is expressed as a CU value, with current supported fixed sizes ranging from 0.25 to 56 CU. The available range depends on the plan.
Follow-up: What is the practical resource estimate for 8 CU? Approximately 32 GB of RAM, since each CU provides about 4 GB.
CU-hours measure compute usage by combining compute size with active runtime. A compute running at 2 CU accumulates two CU-hours for each hour it remains active.
Follow-up: How can usage be reduced without changing workload duration? Use a smaller compute when its processing capacity and memory are sufficient.
Compute sizeCompute Unit (CU)CU-hoursAutoscalingFixed size