Capacity estimates
Separates active and retained archive storage using explicit decimal-MB assumptions.
Day 045 / DevOps / Capacity
A dependency-free Python CLI that estimates retained log storage, modeled rotation peak and budget headroom from explicit assumptions.
Separates active and retained archive storage using explicit decimal-MB assumptions.
Reports the effective archive days after rounding to whole rotation intervals.
Compares the modeled peak against a budget and emits an exit code for review.
Whole-interval archive count
Effective retention reporting
Archive-only compression model
Steady and modeled peak storage
Budget headroom and status
Finite-number and bounded input validation
Text and JSON output
Ten standard-library tests
Argparse, math and JSON provide the complete dependency-free CLI.
Constant growth, archive compression and a raw rotation-overlap allowance are documented assumptions rather than measured guarantees.
Ten tests cover arithmetic, rounding, compression, budget boundaries, invalid numbers and CLI JSON output.