maintenance
Takes one route out of service without touching the rest. The route keeps matching, so no other route takes its traffic while its service is down, and visitors get the installation's unavailable page rather than a 502.
This is a terminal filter: nothing is proxied and the service is never called. In the console it is the Maintenance mode of the route's Target section, where the reason is a list.
Parameters
| Name | Type | Required | What it does |
|---|---|---|---|
reason |
string | no | What to say, from a closed list: empty (say nothing), maintenance, upgrade, incident. |
Example
filters:
- type: maintenance
args:
reason: upgrade
Notes
The answer is the installation's unavailable page, in the visitor's language, with 503 and Cache-Control: no-store.
The reason is a key, not a sentence: the page is read in twenty-two languages, and a sentence typed here would be a sentence in one of them. An empty reason says nothing, which is sometimes the honest answer; a value outside the list says nothing either.
The whole gateway at once
For every route at once, there is a switch rather than a filter, with nothing to edit on the routes and nothing to undo:
- Open Infra > Routes and click Global in the banner.
- In the drawer, turn on the Unavailable switch, then pick a Reason and, if you know it, How long.
While it is on, the banner button reads Unavailable. Every route answers the unavailable page; the sign-in pages keep working, and administrators and developers still get through. Turn the switch off to reopen. See Three buttons in the banner.