This is an automated archive.
The original was posted on /r/sysadmin by /u/punppis on 2024-01-21 20:26:39+00:00.
Im looking for a solution to host wordpress sites on multiple nodes but only one node at a time due to filesystem use. Just a basic Wordpress for customer to do what what he wants so it needs to be on os/container level.
Wordpress uses MySQL which is straight forward to scale/HA but Wordpress stores files too, which is hard.
Sites have fairly low traffic so one node is enough to serve traffic for multiple sites.
But in the case of node going offline, I need to have redundancy.
I tried using network storage before but that was very slow. I was thinking about having rsync to copy latest fs state on node startup. Then again the files in WordPress are few megabytes and most so that could work with some kind of SQL layer. But I want to support larger files too.
Should I keep the ”master copy” on network share and copy it when needed? Is there any other way to distribute file system easily when you know only one node is using the files and most are reads?
On Azure using Docker (looking at container app service atm). Docker volumes are not synced between nodes.