Baseline a real machine over a week and size its replacement

short · 45 min · Objective 2.1

Task

Measure a machine you actually run -- your laptop, a home server, a lab VM -- over a period long enough to contain a real peak, then size a cloud instance from the measurements rather than from its specification sheet.

Steps

  1. Start a collector writing CPU, memory used, disk read and write rates and network throughput to lab/baseline.csv every minute. sar, collectl or a short shell loop around vmstat and iostat are all adequate.
  2. Leave it running for at least four days, including a weekend if the machine's use varies by day.
  3. Compute the 50th, 95th and 99th percentile and the maximum for each metric. Record them in lab/sizing.md beside the machine's actual installed specification.
  4. Choose an instance family and size from the numbers, naming the metric that BINDS -- the one closest to its limit -- and stating the headroom you added.
  5. Write the assumptions paragraph: the window you measured, what it did and did not contain, the growth rate you assumed, and anything you estimated rather than measured.

Verify

awk -F, 'END{print NR" observation(s)"}' lab/baseline.csv
grep -Eci 'p95|95th' lab/sizing.md
grep -Eci 'binds|binding|constraint' lab/sizing.md
grep -Eci 'assum' lab/sizing.md

At least 4000 observations for four days at one-minute intervals. A sizing with no assumptions paragraph cannot be reviewed later, which is the point of writing it down.

This is an independent study companion for CompTIA Cloud+ CV0-004 and is not produced by or endorsed by CompTIA.