Skip to content

How it’s computed

How right-sizing sizes a VM

flo8t sizes each VM for its busy days, not for its average and not for its single worst spike. It takes the 90th-percentile day of the last 30, adds a safety buffer, and rounds up.

WindowThe last 30 complete days.
Demand of a dayThe busiest hourly average of that day. With business hours set, only hours inside them count.
Day used for sizingThe 90th-percentile day by nearest rank: the days sorted from quietest to busiest, the 27th of 30 taken. The size covers at least 27 of the 30 days before any buffer.
CPU buffer×1.15. ×1.30 when the VM waits for CPU: CPU ready above 5% at the 95th percentile.
Memory buffer×1.20. ×1.35 when the VM swaps (more than 100 KB/s). ×1.25 on VMware, which sizes on active memory.
RoundingCPU up to the next whole vCPU. Memory up to the next 512 MB below 4 GB, 1 GB up to 16 GB, 2 GB above.
Limits per stepAt most half or double the current size in one recommendation. Memory never goes below 1 GB.
RefreshedEvery night at 05:30 UTC, after the daily roll-up.

app-db-03 has 8 vCPU and uses the default all-hours schedule. Each bar below is one day’s demand: its busiest hour, converted from CPU % to vCPU (45% of 8 vCPU = 3.6 vCPU).

quietest day27th day: 3.6 vCPUbusiest day
Day demand for each of the last 30 days, sorted. The nine quiet days are weekends.
Step Value
Sort the 30 day demands, take the 27th 3.6 vCPU
No CPU contention, so add the normal buffer: 3.6 × 1.15 4.14 vCPU
Round up 5 vCPU
Check the limits: between 4 (half of 8) and 16 (double) 5 vCPU
Recommendation 8 → 5 vCPU

The three busiest days (4.4, 5.1 and 6.2 vCPU) are left out on purpose: a monthly batch run should not keep 8 vCPU reserved all month. On those days the VM runs hotter but still fits in 5 vCPU most of the time.

Memory follows the same 30 days and the same 27th day, with its own source and buffer:

  • VMware sizes on active memory, the memory the guest really touched. Because it is sampled and reads a little low, it gets ×1.25. Memory only grows when the VM swaps or its active peak reaches 85%.
  • Other providers size on consumed memory. On days when the memory usage % reads much higher, that higher value is used.
  • A change under 1 GB is not worth a resize: the VM keeps its size.
  • Capacity › Optimize › Right-sizing: every recommendation, with the savings.
  • VM page › Usage & cost: the steps above for one VM, with the numbers used.
  • Exports and Ask flo8t give the same steps and numbers as the VM page.
  • Settings › Capacity › Business hours: set the hours that count, for the organisation or per group. Hosts and clusters always use the organisation’s hours.
  • Fewer than 7 valid days: no recommendation; the VM shows insufficient data.
  • A day counts when hourly data covers at least half of its expected hours. An outage day or the install day is left out rather than read as a quiet day.
  • Powered off: hours with the VM off don’t count as demand.
  • No CPU use at all: flo8t recommends the half-size limit, never less than 1 vCPU.
  • New VMs get 30 days of history on first connect (VMware, Proxmox, AWS, Azure), so they don’t wait a month for a first recommendation.