I'm trying to do HA setup of Madsonic:
The media data storage is on CephFS but could just as well have been on a NFS HA setup.
Madsonic is running as Docker instances (alpinelinux version is awesome).
I would like 2 or 3 Madsonic instances runnning but my main concern is the Madsonic data file integrity. I suspect it will be corrupted if I point multiple instances to the same dir+files and they both start a scan task at the same time.
I'm guessing that the corruption would not happen if only one instance write to the Madsonic data file but then i'd have to point all write tasks like playlist mangling to just one instance in the haproxy doing the load balancing.
Can I use a galera cluster for these media data instead somehow or how would one go about this?
I thought of keeping the data files separated and simply let only one instance do the scan tasks, then copy data from that to the other(s). But I'd like to avoid making haproxy pointing to the "read/write" instance. If I don't my playlists and stuff like that will get overwritten.