Capacity headroom

Capacity headroom is the fraction of a system's available capacity that remains unused at an expected workload. In this course, it is used to determine whether the VPS has enough spare CPU, memory and other resources to absorb traffic spikes and operational work.

Minimal example

text
total_ram = 4.0
allocated_ram = 2.4
unused_ram = total_ram - allocated_ram
headroom = unused_ram / total_ram * 100
print(headroom)  # 40.0

Learn this concept

Lesson 7.14 · Single-server capacity estimation

Used in exercises

Exercise 8.7 · Benchmark report package Exercise 8.12 · Engineering walkthrough package