The Window Decides: Capacity Forecasts and Maintenance Plans That Check Before They Start
Two of the most common ways to take production down are perfectly ordinary: a disk that fills up on a Saturday, and planned maintenance that runs on a server with an open incident or a broken backup. DevOps & SRE Intelligence now forecasts CPU, memory and disk from your agents’ own samples, sizes servers on the 95th percentile, and runs planned work in maintenance windows with pre-checks, an approver and a report.

Two stories from the same month at a mid-sized SaaS company.
Saturday, 06:40. The disk on logs-02 reaches 100%. Log shipping stops, then the application on the same host starts failing writes. The on-call engineer clears space by hand at 07:30. On Monday, someone pulls up the disk graph: it had been growing steadily by about 2% a day for three weeks. Nobody was watching a line that wasn't yet an alert.
Tuesday, 22:00. A routine maintenance window: security updates and a reboot on the three API servers. The engineer starts it on time. What nobody checked is that the nightly backup on api-db had silently stopped two days earlier, and that an incident was still open on api-02 from that afternoon. The reboot surfaces a disk issue on api-02, recovery needs a restore, and the restore point is two days old.
Neither event was exotic. Both were ordinary work going wrong in ordinary ways.
First, the basics
Here's the plain-language version of the terms in this post.
- CPU, memory and disk are a server's brain, short-term workspace and storage. When any of them runs out, the software on that server slows down or stops.
- An agent is a small program installed on each server that reports these numbers to TicketResolve every minute.
- The mean is the ordinary average. The 95th percentile (p95) is the level the server stays under 95% of the time; in other words, its normal busy moments. Imagine a restaurant that's empty all morning and packed at lunch: the average says it's quiet, but you still need enough tables for lunch. Servers are the same, which is why sizing is based on p95.
- A forecast projects a trend forward ("at this rate the disk is full in 18 days"). Confidence says how often similar forecasts were right when tested against the last week.
- A maintenance window is an agreed time slot, often at night, when planned work like updates and reboots is allowed.
- A backup is a copy of the data. The recovery point objective (RPO) is how much data you can afford to lose, for example "no more than 24 hours". A backup older than that isn't good enough.
Why does this matter? Many outages aren't caused by attacks or bugs. They're caused by a disk quietly filling up, or by routine maintenance started at the wrong moment. Both can be prevented by looking before acting, which is exactly what this release does automatically.
The problem, in plain terms
- Capacity problems are slow, then sudden. A disk that grows 2% a day is invisible until the day it's full.
- Averages hide peaks. A server that idles all night and works hard at lunch looks oversized on the mean and right-sized on the peak.
- Forecasts pretend to know. Many tools draw a confident line into the future with no word about how often their lines turn out right.
- Maintenance starts without looking. Open incidents, stale backups, overlapping changes and recent drift are the usual ingredients of a maintenance outage, and they're rarely checked at the moment work begins.
Capacity from the agents you already run
The agents already send CPU, memory and disk every minute. Capacity turns those samples into three things.
Utilisation that respects peaks
For each server you get the median, the 95th percentile, the maximum and the mean over the last 7 and 30 days. Sizing is based on the 95th percentile, not the mean.
Take a server that idles at 10% all night and runs at 70% for two hours at lunch. Its mean is 15%, so a mean-based tool would call it oversized. Its p95 is 70%, so it's sized about right. Our own tests use exactly that pattern.
Forecasts that admit what they don't know
The forecaster from Reliability's capacity planning is reused:
- a trend plus a daily or weekly pattern;
- a 95% interval that widens with the horizon;
- a backtest on the last 7 days.
Each forecast carries a confidence label that explains itself, for example "Only 17% of backtest values fell inside the interval". With less than 7 days of samples there's no forecast at all, rather than a guess.
Alerts about the future, not outages
When a forecast says a disk reaches its warning threshold or 100% within 14 days, a capacity alert opens. It says when, at what confidence and how early it might happen. It resolves on its own when the forecast stops saying so. It never opens an incident, because nothing is broken yet.
Maintenance plans that check first
A maintenance plan has four parts:
- a window of up to 24 hours;
- the servers it covers;
- why;
- optionally, one allowlisted operation: a restart, security updates or a reboot.
The operation is a fleet plan that can only start inside the window, canary first.
Before anything runs, pre-checks look at the things that usually turn routine work into an incident:
- Fail:
- an agent isn't connected;
- a declared backup is older than your recovery point objective;
- an incident is open on one of the servers;
- another approved plan or fleet operation touches the same servers.
- Warn:
- no backup is declared at all (that isn't proof of a backup);
- high-severity alerts are open;
- services in the operations twin depend on these servers;
- something changed in the last 24 hours;
- configuration drifted from its baseline.
The checks run when the plan is proposed, again when someone else approves it, and again when the window opens. If an incident opens on one of the servers between approval and the window, nothing starts and the plan's windows are withdrawn.
During the window, alerts on those servers are recorded as suppressed and notify no one. When the window ends, no further batch starts. Afterwards there's a report:
- the checks at each stage;
- what ran, and how it verified;
- alerts and incidents during the window;
- configuration changes recorded;
- security updates still pending.
The two stories, replayed
Saturday's disk, seen on the Tuesday before
How TR handles it. Two weeks before, the forecast for logs-02 shows the disk crossing its warning threshold in 11 days and reaching 100% in 18, with good confidence (most backtest values inside the interval). A capacity alert opens. The team adds log rotation the same week. Saturday is quiet.
Tuesday's maintenance, stopped before it started
How TR handles it. At proposal time, pre-checks fail: the declared backup on api-db is older than the 24-hour recovery point objective. The plan can't be approved until the backup runs. After it does, the plan is approved, but at 21:40 an incident opens on api-02. At 22:00, when the window opens, the pre-checks run again, fail, and nothing starts. The engineer resolves the incident, schedules a new window, and the maintenance runs cleanly two days later, with a fresh restore point.
What we tested
In our demo workspace, three real agents ran a maintenance plan that reloads an application:
- The first pre-checks failed, and they were right to. Old "not reporting" incidents from our test agents were still open, and a halted fleet operation still covered the same servers.
- Once those were resolved, the plan was approved by a second person.
- Nothing ran before the window.
- The window opened, the pre-checks passed again, and the canary reloaded and verified.
- The approver continued, both production servers verified, and the report recorded three verified servers.
To get the report without waiting out the full hour, we moved the window's end time forward.
The capacity screen was checked with 21 days of synthetic samples on a test server, because our demo agents didn't have a week of history yet. Those samples were removed afterwards. The automated tests use the same synthetic pattern.
Before and after
Before. Disks fill up without warning, servers are sized on misleading averages, and maintenance begins whatever state the servers are in.
After. Disks that are heading for trouble raise a capacity alert days in advance, with honest confidence. Sizing follows the 95th percentile. Maintenance checks itself at proposal, at approval and at the moment the window opens, and leaves a report behind.
Who it's for
- SREs and platform engineers who own capacity and patching.
- Engineering managers who want maintenance to stop causing incidents.
- Change managers who need a record of what ran and how it verified.
Mistakes to avoid
- Treating "no backup declared" as fine. It's a warning because it isn't proof of a backup. Declare your backups.
- Acting on forecasts with poor confidence. Read the label. Weak backtests mean watch, not act.
- Long windows with many servers. The canary goes first for a reason; keep windows focused.
What it doesn't do
- Sizing is a suggestion; nothing is resized.
- A forecast needs a week of samples.
- A window runs a single operation. Multi-step maintenance runs as runbooks.
Do it in TicketResolve, step by step
Where: DevOps & SRE → Capacity and Maintenance (/dashboard/devops/maintenance). You'll need: agents connected for at least 7 days for forecasts, and an approver other than yourself. Full guide: Planning maintenance and reading capacity.
- Check capacity. Capacity shows p95 utilisation and a forecast per server once there are 7 days of samples. Read each forecast's interval and confidence label. A capacity alert opens by itself when a threshold is forecast within 14 days.
- Declare your backups. Backups that aren't declared can't be checked, and maintenance pre-checks will warn about them.
- Plan the window. Maintenance → Plan maintenance: a title, the window (up to 24 hours), the servers, why, and optionally one allowlisted operation: a restart, security updates or a reboot.
- Read the pre-checks. Agents connected, fresh backups, no open incident, no conflicting work; warnings for open alerts, dependent services, recent changes and drift. A failing check blocks approval. Fix the cause (run the backup, resolve the incident) and check again.
- Get it approved. Someone else approves. Alerts on those servers are suppressed during the window. The operation starts only when the window opens, canary first, after the pre-checks pass again.
- Read the report. Afterwards: what ran and verified, alerts and incidents in the window, configuration changes and updates still pending.
How to check it worked: the report shows every server verified, and the capacity alert for the growing disk resolves on its own once the fix brings the forecast back under the threshold.
Frequently asked questions
Does a capacity alert open an incident? No. Nothing is broken yet, so it opens an alert that resolves itself when the forecast changes.
Why size on the 95th percentile? Because averages hide the peaks servers must actually handle.
When do pre-checks run? When the plan is proposed, when it's approved and again when the window opens.
What happens to alerts during the window? They're recorded as suppressed and notify no one, and they appear in the report.
Explore Topics
Written by
Ghulam Shabbir
Content creator and writer sharing insights and stories.


