1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/website/docs/reference/maintenance-mode.mdx

43 lines
1.7 KiB
Plaintext
Raw Permalink Normal View History

---
title: Maintenance Mode
---
:::note Availability
**Version**: `4.22+`
:::
Unleash maintenance mode is a feature that lets administrators put Unleash into a mostly read-only mode. While Unleash is in maintenance mode:
- Unleash users **can not change any configuration settings**
- Unleash's APIs will not allow you to persist any changes
However, any metrics sent to Unleash from client SDKs are still processed, so this mode does not have any effect on client SDKs.
Maintenance mode is particularly useful during important events when any accidental or deliberate changes the feature/strategy configurations could lead to issues.
## Maintenance mode configuration
Maintenance mode is controlled from the "maintenance" section of the Unleash admin configuration page.
![Maintenance mode being toggled on](/img/maintenance-config.png)
When maintenance mode is enabled, a warning banner appears at the top of the Unleash dashboard, indicating that any changes made during this period will not be saved and may result in errors.
![Maintenance mode banner when maintenance mod is toggled on](/img/maintenance-banner.png)
2023-05-25 08:28:05 +02:00
## Maintenance mode and scheduled jobs
When maintenance mode is enabled all internal jobs performed by Unleash such as updating metrics and statistics are paused. When maintenance mode is toggled back to disabled later, all scheduled
jobs are resumed.
## Maintenance mode and read-only DB user
When maintenance mode is enabled most DB operations are suspended so you can use even read-only DB user. There's one exception though.
Unleash DB user role needs a DELETE and UPDATE permission on the unleash_session table.
```
GRANT DELETE ON unleash_session TO my_db_role;
GRANT UPDATE ON unleash_session TO my_db_role;
```