-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Description
NetBox version
v3.3.9
Feature type
Change to existing functionality
Proposed functionality
The current 'Maintenance mode' ensures that no writes are done to the database. It also displays a banner that the instance is in maintenance mode.
I would like to have a 'ReadOnly' mode that
- like maintenance mode, prevents updates by logins.
- don't display a banner (custom banner can be set with the BANNER_TOP)
- don't do any database updates with the upgrade.sh script
- optionally: provide a message to the user if he tries to do a write operation, with info to the read/write
- optionally: use a separate database for session logs
Use case
We use postgres WAL to create a almost-realtime readonly copy of our production database.
This can be used to poll data from with API calls and the GUI.
In order to maintain this node, we need to patch the upgrade.sh (remove database operation), but that breaks the git pull.
Also, that banner that is show is not relevant to the state of our instance. It is not in maintenance, it is in readonly.
The sessionpath is an option, but I would rather like to send that to a separate database (different postgresql server) to maintain the session state across webfrontends
Database changes
No response
External dependencies
No response