Distributed/Replicated Plex library

Based on my research this isn’t possible with Plex but maybe I’m wrong:

I want to have my Plex library stored on a NAS in 2 or more locations. Each NAS would be a synchronized clone of one primary NAS. So far, this seems possible with rclone or similar.

However, I want to always stream media from the closest NAS. If NAS A is in Portugal, and NAS B is in Indonesia, and I’m also in Indonesia, it doesn’t make sense to stream media from NAS A. Or if the power goes out in Portugal and I’m in the UK, it would be great to automatically connect to NAS B instead. This would also work as a great backup system if one of the NASs gets stolen or breaks.

Is this too much to ask for? Yes, I could set up multiple Plex libraries (one on each NAS with identical content), but the playlists/metadata wouldn’t sync between them and I’d have to manually switch between them in the client. Anyone have any ideas?

I guess this will be an entirely different league of server.
You can probably even build something like this with some half-clever load-balancing or data mounting/routing. Then again… only replicating the media will do you little good as the streams will still run through your server (NAS->PMS->client; not NAS->client).

There’s been a similar request in the past (not the same) where a user was asking for an option to sync the databases between their servers. They were then planning to access their different servers (each with a redundant and fully synced set of libraries).

2022 clean-up: abandoned/duplicate