Your team must capacity-plan for a server whose disk grows 4% per week. How do you predict when it fills?
IntermediateScenarioMigrations, performance and fleet operations
Answer
Situation read → Use historical metrics and alert on trends, not thresholds.
What I'd do →
- Collect disk usage with node_exporter into Prometheus.
- Alert when the forecast says the disk will fill within a week:
predict_linear(node_filesystem_avail_bytes{mountpoint="/data"}[7d], 7*24*3600) < 0
- Plan the expansion before the date, and investigate why growth is 4% weekly (retention?).
Why → A fixed 90% threshold alerts too late on fast-growing disks and too early on stable ones.
Interview tip → predict_linear is a great specific detail to mention.
More on Migrations, performance and fleet operations
You must migrate 2 TB of application data from an old server to a new one with less than 5 minutes of downtime. How?IntermediateThe new server has different UIDs for the same users than the old one. What breaks during migration and how do you handle it?IntermediateA server is "slow" according to users. What is your first 60 seconds of investigation?BeginnerYou need to replace a physical server with a VM without changing its IP or hostname. Plan the cutover.IntermediateMemory usage on a server shows 95% used but the app is fine. A manager is worried. How do you explain and verify?BeginnerYou need to set up central logging for 200 Linux servers. Design it.Intermediate