Skip to content

Using multiple Netbox frontends with a single PostgreSQL database #14413

Discussion options

You must be logged in to vote

Each Netbox instance has independent Redis caches, but I am unsure about what would happen if both instances try to update the same objects in DB.

Sharing the postgres database absolutely fine. Indeed, this is how it works in single-server operation, where you have multiple gunicorn worker processes and/or threads.

When doing this, you should share the Redis cache as well.

However, the fundamental problem you will have is that there are many cases where the database schema changes between versions. Therefore in general you can't test a new version alongside running an old version using the same database.

The solution is to clone the production database, copy it to the test server, and t…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@vladimirs-git
Comment options

Answer selected by vladimirs-git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants