Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 1014 Bytes

maintenance-mode.md

File metadata and controls

24 lines (17 loc) · 1014 Bytes

Maintenance mode

The maintenance mode is useful when you want to temporarily disable the gateway for maintenance purposes, for example when you're upgrading Orion to a new version or you're experiencing some issues with your gateway and you want to prevent users from accessing it until you resolve them.

In order to switch the maintenance mode on or off, you can use setKillSwitch operator mutation. If you set isKilled argument of the mutation to true, the maintenance mode will be enabled, if you set it to false, it will be disabled.

mutation SetKillSwitch {
  setKillSwitch(
    # Enable the maintenance mode
    isKilled: true
  ) {
    isKilled
  }
}

image

When the maintenance mode is enabled, the users will see a screen like this when trying to access your gateway:

image

However, as a Gateway Operator, you will still be able to use the GraphQL API to execute queries and mutations.