Filters
How to search
  • Plain words find names, texts and examples.
  • "two words" finds the exact phrase.
  • --name or -x finds an option.
  • #word looks only inside commands.
  • @grep finds lessons and labs that use grep.
  • Filters: cat:network · in:labs · in:notes · level:rhcsa · ch:8 · root:yes. Put ! before a word to leave it out. OR between words means one of them.
  • ↑ ↓ to move · Enter to open · Esc to close · / to search

Platform operationsMixed 24 series

A maintenance window people trust

Every maintenance window is a promise about time, and most break at the end rather than the start.

Quick reference

Announce it, scope it, and finish inside it.

  1. A promise about time — When it starts, what stops, and when it is over.
  2. Three messages — A week, a day, an hour. The same facts each time.
  3. Scope is what stays up — Name the journeys still working, not the services.
  4. Script, timestamp, abort — One command to stop, one number to trigger it.

In one line: End when you said you would. The next window inherits the credibility of this one.

Start this week:

  • Book the window and the rollback rehearsal together.
  • Publish the scope as user journeys, not service names.
  • Put the promised and actual end times in the change record.

Explained

Before the window, write the scope as the list of things that stay up, not the list of things you touch. Read-only search with checkout still working is a promise a customer can plan around. Send the notice three times: a week out for planning, a day out for reminders, an hour out for those already awake. Same facts each time, including the person who can abort.

Inside the window, run a script, not a memory. Timestamp the start in UTC, check health after each step, and write the abort threshold as a number before you need it. Two percent errors for five minutes is a decision you can make at 02:00; a feeling is not.

Close out loud. Post what changed, what to watch and who owns the follow-up, with the actual end time next to the promised one. A window that ends early is a gift; one that overruns silently is a debt the next window pays.

Checklist

Run it when the window is booked, not when it opens. A line that cannot be answered is a reason to move the date.

Prepare

  • The scope lists what stays up, not only what stops.
  • The rollback has been run once, in a copy.
  • Capacity exists for the load that moves elsewhere.

Announce

  • The notice went out a week, a day and an hour before.
  • Support has the macro and the abort contact.
  • The status page template is drafted, not improvised.

Execute

  • The script prints a UTC timestamp at the start.
  • The abort threshold is a number, written down.
  • One person is named to call the abort.

Close

  • The close message states the actual end time.
  • The change record holds the timings and checks.
  • Every follow-up has an owner and a date.

The field guide

The full guide of the PDF (P1133), page by page.

A window is a promise (the promise)

A maintenance window tells people three things: when work starts, what stops, and when it is over. Most windows are judged on the third.

The work itself is usually the easy part. The promise is harder, because it involves people outside the team: support answering tickets, customers planning their day, and the on-call engineer who inherits whatever is left at the end.

What you announceWhat they hear
Two hours, no downtimeNothing will break
Read-only for a whilePlan for a day
Brief blip at 02:00Someone is awake
  • Say what stops, not only what runs.
  • Give one start time in UTC and one local time.
  • Name the person who can extend or abort.
  • Publish the finish line before the window opens.

The end is the promise A window that overruns by an hour teaches people to ignore the next one. Plan to finish early, and say so in the notice.

A window people trust is one that ends when it said it would.

Announce three times, not once (the notice)

One email is a hope. Three short messages, at a week, a day and an hour, are a plan, and each one can be cancelled.

The first message is for planning, the second for reminders, the third for the people who are already awake. Keep all three short and identical in the facts they state: scope, start, end, impact and the abort contact.

  1. Send the planning notice a week out, with the scope and the rollback plan.
  2. Repeat it a day before, with the exact start time in two time zones.
  3. Post the start message when work begins, not when the first step completes.
  4. Post progress at a fixed interval, even when there is nothing new.
  5. Post the close message with what changed and what to watch.

Silence is the failure mode The outage people remember is the one where the status page said nothing for forty minutes. A boring update every twenty minutes is cheaper than an incident channel full of guesses.

Note: If the notice takes longer to read than the work takes to run, shorten the notice, not the window.

Announce the window the way you would announce an outage: early, often and plainly.

Say what stays up (the scope)

Scope is not a list of services you touch; it is a list of what still works while you touch them. Write the second list first.

Customers do not experience your maintenance window; they experience whatever the platform does during it. A window where search is read-only and checkout keeps working is a different promise from one where the whole site returns 503.

Still workingDegraded or stopped
Checkout and paymentsSearch reindex
Login and sessionsReport exports
Mobile read pathsAdmin console
  • List the user journeys, not the services.
  • State the expected error, not just the impact.
  • Put the support macro in the same document.
  • Name the feature flags that change the scope.

Scope creep is a scope leak If a step is added mid-window, the promise changes. Either defer it to the next window or announce the new end time before you start it.

If you cannot say what stays up, you cannot say what the window costs.

Run it from a script, not from memory (inside the window)

The person running the window is tired, watched and interrupted. Give them a script with timings, checks and an abort that is one command long.

The script does not need to be clever. It needs a start timestamp, a pre-flight check, the steps in order, a health check after each one, and a line that records the end time. Everything else is commentary.

A two-hour window, timestamped

date -u +%FT%TZ | tee -a window.log
kubectl cordon node-3
kubectl drain node-3 --ignore-daemonsets \
  --delete-emptydir-data --timeout=300s
curl -fsS https://api.example.com/healthz
date -u +%FT%TZ | tee -a window.log

Abort on a number, not a feeling Write the threshold before the window: error rate above two percent for five minutes, or p99 latency above one second. Hitting it is not a judgement call.

Note: Kubernetes v1.20 renamed the drain flag --delete-local-data to --delete-emptydir-data. Check the flag name against your cluster version before the window, not during it.

A script with timestamps turns a window into evidence.

Close it out loud (the close)

The window ends when the last check passes and someone says so in the channel. Anything else leaves people waiting for a message that never comes.

Closing well is three sentences: what changed, what to watch, and who owns the follow-up. Post them in the same channel where the window was announced, and put the timings in the change record.

  • State the actual end time next to the promised one.
  • List the checks that passed, and the one that did not.
  • Keep the abort switch available for twenty four hours.
  • Schedule the cleanup of temporary flags and capacity.
  • Link the follow-up tickets before the channel goes quiet.
MeasureA good window
End within promiseYes, or announced early
Unplanned customer impactNone beyond the scope
Rollback usedZero, or rehearsed
Follow-ups ownedEvery one, with a date

Note: A window that finishes early is a gift; a window that finishes late without warning is a debt.

The next window starts with the reputation of the last one.

The honest caveat: a short window can still break something outside its scope, so keep the abort switch and rollback path available after the close.

Your turn: When did your last window finish, compared with what you announced?

More notes: Platform operations

Open in the notes app: search, filters, copy This note on GitHub