Resource budgets
Separates supplied host capacity, reserved resources and per-guest allocation assumptions.
Day 047 / DevOps / Capacity
A dependency-free Python CLI that estimates identical guest capacity on one host using explicit CPU, RAM, storage and reserve assumptions.
Separates supplied host capacity, reserved resources and per-guest allocation assumptions.
Rounds each resource limit down and reports every resource tied for the smallest guest count.
Labels the output as an allocation estimate, with performance, HA and storage-overhead limitations documented.
Single-host identical-guest model
Separate CPU, RAM and disk limits
Explicit RAM and disk reserves
Configurable CPU allocation ratio
Limiting-resource ties
Remaining resource budgets
Text and JSON output
Eleven standard-library tests
Argparse, math and JSON provide the complete dependency-free CLI.
Rejects non-finite numbers, invalid reserves, non-integer CPU counts and unsupported allocation ratios.
Eleven tests cover each resource limit, ties, headroom, reserves, numeric boundaries and CLI JSON behavior.