SYSTEM INFORMATION | |
---|---|
OS type and version | Ubuntu Linux 22.04.3 |
Webmin version | 2.105 |
Virtualmin version | 7.8.2 |
Related packages | stock install |
Greetings all virtualmin related folks. I’m a relatively new user, a convert from plesk. I’ve been hosting a couple of my public websites from webmin for the last few months and things have been perfectly smooth. I wish I had investigated virtualmin years ago.
Anyhow, the reason that I am here is this, I have been trying to make my sites and environment more HA resilient. I’ve had a lot of downtime lately, because I’ve had to move storage spaces, virtual hosts, etc etc etc. So, what I have decided is that rather than have a single vm hosting all my sites, I want to have redundant mysql and web frontend servers.
The first task is complete. I have two webmin servers dedicated to mysql, and one replicates to the other. Perfect, task complete. So, my next is focusing on two frontend servers with virtualmin.
I’ve got my two front end hosts up and running, and they work…for the most part. The hosts, WEBMIN1 and WEBMIN2 can transfer the virtual server from one to the other, however there are some quirks. If I point my cloudflare proxy to the active node, the sites work fine. If I point the proxy to the secondary machine, without it having been ‘transferred,’ I get global 403 errors and the sites are inaccessible.
The storage of the data for the virtual servers, at /home/sitename is an nfs mount to my NAS so the data is centralized and if users update media or whatnot, it’s all good to go. That was what the vbulletin forums had suggested for an HA type setup. Obviously with the data being shared on an NFS mount, the copying of the data in the transfer process isn’t necessary, but there seems to be a step in the transfer process that makes the data on the destination virtualmin server active and accessible.
So, what I need is both nodes to be accessible at any given time, so I can point the proxy at the other node, and it just works. It seems to be a niche need so there isn’t much in terms of documentation, but I’m open to hear what you fine folks might suggest.