Baseline a real machine over a week and size its replacement
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
- Start a collector writing CPU, memory used, disk read and write rates and network throughput to
lab/baseline.csvevery minute.sar,collectlor a short shell loop aroundvmstatandiostatare all adequate. - Leave it running for at least four days, including a weekend if the machine's use varies by day.
- Compute the 50th, 95th and 99th percentile and the maximum for each metric. Record them in
lab/sizing.mdbeside the machine's actual installed specification. - 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.
- 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.