Skip to main content

Maintenance Windows

A maintenance window is a period you announce in advance so that planned work does not wake anybody. While it is open, the hosts it covers raise nothing and notify nobody — but everything that happens to them is still recorded.

Windows live under Infrastructure → Maintenance windows.

Modes​

Every window has a mode, chosen in the form:

ModeAlertsEvents
Mark alerts as planned (default)Raised as usual, marked planned and not mailed while the window is open.Warning and info events do not notify. Critical events still notify, with (planned maintenance) in the subject.
Silence alertsNone are raised.None notify.

With planned, an incident during the work is not lost: the alert exists, is visible with a planned badge and is there to be looked at afterwards. When the window has ended, its alerts stay marked for 30 minutes to give the hosts time to settle. An alert still open after that is announced like any other, the notification delay counted as already served. An alert that resolved within the 30 minutes is never mailed, so the usual noise of a reboot is gone and a fault that outlasts the work is not.

Windows that existed before the upgrade keep behaving as they did and are set to Silence alerts. Windows that a patch run or a job opens for its host are planned. The list shows each window's mode, and the mode can be changed by editing the window.

The rest of this page describes the Silence alerts mode. Under planned, read "no new alert is raised" as "the alert is raised and held back".

What a window suppresses, and what it does not​

While a window is open, for every host it covers:

  • No new alert is raised. A threshold crossed during the window creates nothing; there is no alert to acknowledge afterwards and no mail about it.
  • No event notifies. The reboot, the failover, the unit that failed and came back — all of them are matched against your event rules as usual and then held back.

What still happens, exactly as on any other day:

  • Metrics keep arriving and are stored. Charts have no gap over a maintenance window.
  • Events are recorded. The reboot you performed is on the timeline, marked with its real time. That is the point: the window changes who gets woken, not what is true.
  • Status still changes. A host that stops reporting is still marked OFFLINE, and the system.offline event is written — it just does not notify.
  • Alerts that were already open keep being updated and still resolve.

That last one is worth dwelling on. Opening a window does not close the alerts that are already active; it stops new ones. An alert that was open when the window started continues to have its current value refreshed, and if the value comes back inside its threshold for a full rule duration, it resolves normally — quietly, since resolutions do not notify either way. The effect is that the quiet ends with a clean slate rather than with a set of alerts frozen mid-incident that you have to sort out by hand.

If you want an already-open alert gone before the work starts, acknowledge or resolve it on the alerts page first.

Scopes​

A window has exactly one scope:

ScopeCovers
All hostsEverything this instance monitors.
CustomerEvery host belonging to that customer.
ClusterEvery host currently in that cluster, plus events attributed to the cluster itself.
HostOne server.

Cluster and customer scopes follow membership as it stands at the moment of evaluation, so a node that joins the cluster during the window is covered without anyone editing the window. A customer without a service contract has no hosts and cannot be the scope of a window (409).

Creating one​

From Infrastructure → Hosts, select several hosts and choose Maintenance in the bar: the same dialog opens with the selection as the scope and creates one window over each of them.

New window asks for a name, the scope and, when the scope is not all hosts, the target; a start and an end; and an optional note. The start defaults to the next five-minute mark and the end to two hours later. The times are entered and displayed in the instance's time zone, set under Settings → General — the dialog names it under the start — so a window reads the same to everybody, wherever their browser is.

The name is what you will read in the list afterwards — Kernel update database cluster is useful, maintenance is not. The note is the place for a ticket number or a phone number.

The end must be after the start. A window whose start is in the future is only upcoming: it does nothing until its start time arrives, and then becomes active without anyone doing anything.

Administrators and managers may create, edit, end and delete windows — a manager only where the scope is one it reaches in full: a host or a customer it has been granted, or a cluster whose every member sits at a customer it has been granted. A window over all hosts silences every customer in the instance, which is more than any grant can add up to, so that one is administrator-only.

Operators and viewers create nothing: the API refuses them too, not just the interface, and the navigation offers this page to administrators and managers only. See Users and Permissions.

Per host​

The ⋯ menu of a host with an agent or a network device has Maintenance mode on. It asks for a name (preset to the host's name), a duration of 1, 4, 8 or 24 hours or an end of your own, and an optional note, and opens a window scoped to that host that starts now. The same menu entry then reads Maintenance mode off and ends the host's own window: a plain window gets its end set to this moment, a repeating one ends only the occurrence that is open. Both are on the host's page as well, and the desktop app offers them in a host's context menu. Hosts without an agent and link hosts have no maintenance mode.

A host that is already in maintenance mode through its own window refuses a second one (409 already_in_maintenance). A host covered only by a wider window (a customer, a cluster or all hosts) is shown as under maintenance, and Maintenance mode off is greyed out with the name of that window: end it where it was made. If a wider window still covers the host when you end its own, the confirmation says so, and the alerts stay quiet until that one ends too.

The calls behind it are POST and DELETE /api/systems/{id}/maintenance; both write the audit log (maintenance.create, maintenance.update), and both need the right to manage windows over that host, like any other window.

Repeating windows​

A window that recurs — the patch night on the second Tuesday, the backup hour every night — is created once. Repeat offers, worded for the start you picked:

  • Every day
  • Every week on the start's weekday
  • Every month on the same date, e.g. the 8th. A month without that date — the 31st in April — uses its last day.
  • Every month on the same weekday, e.g. the second Tuesday. A start in a month's last week, a fifth Tuesday, means the last Tuesday of every month.

Each occurrence starts at the same wall-clock time and lasts as long as the first. The time is kept in the instance's time zone as it was when the window was created or last edited, so a window at 02:00 stays at 02:00 across the change to and from summer time. Changing the instance's zone later does not move existing windows; editing one moves it onto the new zone. An occurrence must be shorter than its period — at most a day when daily, a week when weekly, 28 days when monthly — so occurrences never overlap.

Repeat until is optional: occurrences that would start after that day do not happen. Left empty, the window repeats until it is deleted.

In the list a repeating window shows how it repeats under its name, and its start and end are those of the open occurrence or, between occurrences, of the next one; it sits under Upcoming between occurrences and under Past once its last occurrence is over. End now on a repeating window ends only the occurrence that is open — the next one starts as planned. To stop the series, delete it.

Editing one​

The pencil in a row opens the window in the same dialog it was created with; everything can be changed — name, scope, times, repetition and note. A repeating window is edited as its pattern: the dialog shows its first occurrence, not the one the list shows, and a change applies to the whole series. An occurrence ended early with End now stays ended as long as the times are left alone; once they change, the series starts afresh on the new ones.

Editing needs the same rights as creating, for the scope the window had and for the one it gets.

The list​

The list shows active windows first, then upcoming ones by start. Above it a search matches the name, the note and the scope's target, and two filters narrow it: Scope (all hosts, customer, cluster, host) and State — Active and upcoming by default, or Active, Upcoming or Past (last 30 days) alone. Each row shows the name, the scope and its target, start, end, the note and who created it. Active rows carry a badge and a tint.

The list holds the windows the account reaches, so a window naming another customer's host — and the name of whoever opened it — is not in it. The instance-wide window is the exception and stays visible to everybody: it silences their hosts too, and a host marked Maintenance with nothing on screen to explain it is worse than seeing a window you did not open.

An active window has an End now button, which sets its end to this moment. Use it when the work finished early — the alternative is a quiet estate for another two hours. Deleting a window removes it from the list entirely; ending it keeps the record of what was silenced and when.

Hosts covered by an open window are also marked in two other places: a Maintenance badge next to the name in the hosts list, and the blue Under maintenance tile on the overview, which links to those hosts. That tile is blue on purpose — the host is quiet because somebody decided so, and it must not read as a fault.

The permanent version: an inactive customer​

Switching a customer to inactive produces exactly the same silence, for all its hosts, for as long as the switch stays off: no alert is raised, no notification is sent, everything is still recorded, and alerts already open keep updating and resolving. There is no end time — it lasts until somebody switches the customer back on.

Use a window for work with a beginning and an end. Use the inactive switch for a customer you are no longer on call for, or one whose infrastructure you are keeping data on but no longer watching. See Customers and Hosts for what else the switch changes.

Practical notes​

  • Create the window before you start. A window that opens at 21:00 does nothing about the alert that fired at 20:58.
  • Scope as tightly as the work deserves. All hosts while you reboot one database node means a genuine outage elsewhere goes unreported for the duration.
  • Give it a generous end. Ending early is one click; a window that expired while the cluster was still resyncing produces the alert storm you were trying to avoid.
  • After the window closes, the next evaluation run judges the current state afresh. Anything still wrong is raised then — so the alerts you get after a window are the ones that are still true, not a replay of the ones you missed.

Windows that jobs create and wait for​

A job can hold back alerts for its host while it runs. The dashboard then opens a window of its own for that host, named after the job's batch, and ends it when the job is over. These windows are listed with the others and can be ended early like any other. A job can also be set to wait for a window of yours: it is sent only while that window is open.

Patch policies and windows​

A patch policy can run in one of these windows or follow a schedule of its own, with the same wall-clock rules as a repeating window: daily, on weekdays (optionally every n-th week), on the n-th of a month or on the n-th weekday of a month, in a time zone. Choose a window when several policies, jobs or alerts should share it; choose the schedule when the times belong to the policy alone. A policy has either one, never both. Alerts are suppressed during a scheduled run in the same way as for any job that asks for it, and the window the job creates is listed with the others.