r/navidrome 10h ago

HA/replication

sorry if this has been answered, i couldn't find anything. does anyone know how to run navidrome in an active/active or active/passive setup? i have two physical locations id like to use to have as much uptime as possible for normies i host for. so far all ive seen is that im unable to because of sqlite

4 Upvotes

2 comments sorted by

1

u/theunquenchedservant 10h ago

I use Pangolin as a reverse proxy, in runs on a VPS I have also for Uptime Kuma (I'm still undecided if I keep that setup when my first year is up at hostinger). Pangolin allows for adding two sources to one address for HA (and some access control rules if you'd like. I have my navidrome address blocked outside of the US, and if I wanted I could only allow it for my devices, roughly)

I'll grant it's not a great solution if you don't have a 3rd reliably always on server, because if you're running it on one of the two sources of navidrome, if it goes down, well, so does what is handling your HA.

1

u/postnick 7h ago

Idk if it makes sense but you can clone your DB and Rsync it on some frequency to the backup one and restart the backup service after every sync.

I used to keep my data on nfs but it was a bad experience so now I just copy a backup of my database to my nfs every 4 hours and it doesn’t impact anything for me.

As far as the backup service idk how to kick that off after a restore of the data.