Skip to content

Webfrontend with database in readonly mode #11233

@PieterL75

Description

@PieterL75

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

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions