How is everyone doing HA for Netbox?

1,855 views
Skip to first unread message

Sean Cohen

unread,
Feb 18, 2018, 6:14:36 AM2/18/18
to NetBox
Hi all

We are currently finalizing the migration to netbox and as it becomes more critical we were thinking of implementing some form of HA or possibly a read only server for querying.

How is everyone doing it? 

Sean

Brian Candler

unread,
Feb 18, 2018, 5:00:15 PM2/18/18
to NetBox
It's just a web application; there's not much to it really.  Your options are:

- If you already have a highly-available Postgres database server, then point Netbox at that.  You can have multiple frontend instances talking to the same database, stick them behind a load-balancer if you like.  The only other thing which needs replicating is the netbox/media directory (or you could use an NFS mount, if you have a highly-available NFS server)

- If you already have a highly-available VM infrastructure, then run Netbox inside a VM on that.

- If you want a "read-only" emergency copy then use Postgres replication (and rsync for the netbox/media directory).  Give this Netbox instance a database login which has only SELECT permissions on the tables.

To be honest: I would worry more about taking good, frequent backups of the Postgres database.  These have saved me in the past, for example where a user has wrongly made a bulk delete of devices or VMs.

HTH... Brian.
Reply all
Reply to author
Forward
0 new messages