Fully Synced Cpanel Servers
Hi,
I've been reading severall posts regarding this issue, and in some of them i found ideas in how to achieve what i describe below
Basically i want to have 2 mirrored cpanel servers fully synced and where each one can serve the websites requests at any time.
I'm removing the Mysql from the equation since i plan to use an remote cluster for the effect.
Also DNS would be external.
So basically we get left with syncing files and cpanel configurations. Knowing the needed files it would be quite easy to cron an rsync or even creating a live sync service.
However i have a doubt that is regarding the different IP that the servers would have.
How can we sync all definitions of the services and keep aware that we would have different IPs in each server, so configurations must reflect that? I',m imagining problems on apache confs probably .
Thanks in advance for any insights on these one.
J. Sa
-
Do you really need to sync configurations, as opposed to just syncing website content? 0 -
Hello, Users will have acess to the control panel, no matter the server active at the moment . Changes done in the user account must be replicated . Also if a new account is added it must exists in both servers, i guess we need to sync cpanel configurations, users files, etc. 0 -
In that case, you'll probably need to wrap rsync around a script, and have the script adjust the configuration after the sync is done, or skip certain files that would be dangerous to copy. 0 -
Seems the right direction, in fact doing an IP replace on the files after the sync and rebuilding apache seems a light and simple operation. I will start doing some tests. Thanks a lot. 0 -
Hello :) I just wanted to point out some threads that you might find helpful: Load Balancing Between 2 cPanel Servers Load Balancing Load Balancing Servers cPanel Load Balanced Servers Also, feel free to add your input to the following active feature requests: Active Redundancy or High Availability Build in Load Balancing Thank you. 0 -
we sync one of our servers across data centers /usr/bin/rsync -vrplogDtH -e "ssh -p#" --delete --exclude=virtfs/ --exclude=sites_we_dont_want_to_replicate/ /home/ root@IP:/home DNS is hosted elsewhere round robin Databases are dumped and loaded on the fall over server every 15 minutes (good enough for what we are using it for) the rsync every hour (good enough for what we are using it for) both servers are configured exactly the same works like a charm the mail settings do not change from server to server so we do not need to sync that but you could sync some of the configs over just as well (only the things that change ) 0
Please sign in to leave a comment.
Comments
6 comments