Our features site is undergoing a refresh! Be sure to explore the revamped site and discover our latest product roadmap launching here on Monday, March 18th.

Server configuration and data auto-sync (mirroring)

Nathan Lierbo shared this idea 12 years ago
Open Discussion

I have server A and server B running Whm+cPanel. I would like to have a setting in whm that would set this 2 servers to auto sync each other. I mean server B to be a mirror of server A, but with his own server settings (like dns, ip and stuff).


And on each of my domanins I set serverA and serverB nameservers. This way if something changes on one server, the other one will auto sync (files, emails, cpanel settings).


I've read about some rsync software, but it would be nice to have this in whm as a simple setting.


Original thread: http://forums.cpanel.net/f145/server-configuration-data-auto-sync-mirroring-134889.html

Replies (18)

photo
3

How many votes required before Cpanel developers would look into this?


for me it is an emphatic YES!!!

photo
1

This would be awesome, to have all my sites backed up in other server.

photo
1

I agree that this would help those of us that are trying to create an environment where we can have production and test/dev boxes. I am looking for best practices, tips and tricks to take a VPS cPanel server and use that image/config to create an apples to apples test/dev box for an e-commerce site I'm working on. Please see my post:


Any help would be greatly appreciated. The ability to take a production server and create a sync'ed box to use as a sandbox is a must have for cPanel due to the templated way that it will step on manually changed critical config files.


Thanks!!!

photo
1

I, too, would like to see a native mirror/fail over scheme. In fact, I was quite surprised when I discovered there is none.

photo
1

Folk have been asking about this feature since before 2005. I was afraid if it ever did come out it would not be what I envision so I coded it myself, works, but is unsupported (of course) by cPanel.

photo
1

@ratz0 - Would you like to share your code and some ideas?

photo
1

@Ryan Campbell - Sorry, it is not really something that can be packaged yet though I have used it for a few clients. I would not want to get into the details unless I was on a job getting compensated for it, this is not an offer, I am not really looking to implement that solution for other companies at this time. I will say that if you pick apart the moving parts (data wise) in a cPanel installation you can figure out how to do it.

photo
photo
1

it will be nice if cpanel have this feature :D

it can be easy for setup load balance server

photo
1

It looks like there are already a lot of demand for this service. Many of our clients would like to use it so we hope it'll be released soon.

photo
1

This something very important, not just for testing, but also for backup and switching from one server to another when anything bad happens, to avoid down time.


Please Please & please add this feature!

photo
1

Ch Najm has a point .. backup mirror server, I cannot believe its not be created yet...

photo
2

Great idea, obviously there would need to be some considerations with regards to the ip address.


If you run all your shared accounts on the same ip address as the main server ip (as many do) then if you were simply syncing data to a 2nd server on a different ip, you'd have propagation and sync issues if you switched over in a disaster recovery situation.

The 2 servers would need their own ip's and the accounts on their own ip.


Set up

Based on 1 ip address and 2 servers in the same ip group in the datacentre:

- Cpanel DNS only set up on 2 separate vps's elsewhere (syncing with both cpanel servers)

- Cpanel server 1 (production) on ip 102.2.2.20

- All accounts using ip 102.2.2.25

- Cpanel server 2 (backup) on ip 102.2.2.30

- Accounts sync over but KEEP ip 102.2.2.25 as their shared ip


In a disaster:

- Datacentre switches ip 102.2.2.25 over to the backup server

- All accounts instantly connect on the backup (server 2), no propagation as it's the same ip.

- You sort out issues with server 1

- Server 1 comes back online and Cpanel syncs any changes back from server 2 to 1.


Then when all changes are up to date, the datacentre switches ip 102.2.2.25 back to server 1.


This is the only way it can be done without any DNS issues because the accounts must keep their shared ip address, otherwise even if the backup server comes online, you'll have several hours of downtime waiting for the DNS changes because DNS will continue trying to connect to the original ip.


Normally if you migrate an account, using express transfer, Cpanel puts a "redirect" on the original server which buffers the migration period. However, this will not be in place if the original server is down.

photo
2

I did it in the hard way, by hand. CPanel team, please abandon all other efforts, and concentrate on this feature.! High Availability is very demande.d.

photo
1

I believe this would be a great idea, as I have the same configuration above and doing it manually isn't a great idea as mistakes can happen

photo
3

All world awaiting for this feature :)

photo
1

We really need a way to achieve high availability. This is super important.

photo
1

cPanel is unlikely to be able to offer this even in 10 years, search 'autom8n' on the web for a reliable solution working with cPanel

photo
1

You are better off looking for an HA / failover server hosting solution or possibly look at another panel such as 'virtual min' or 'cluster cs' that natively supports HA

photo
1

Translate by Google :


Do like me I created my own synchronization between two cPanel servers, and in two different datacenters with different IPs each time and possibility to choose the country of localization of IPs. So my customers come to my house and if my customers want to have direct synchronization between two of their two servers I make them for 2,999 euros (1 day of work)


----------------------------------


Faites comme moi j'ai créé ma propre synchronisation entre deux serveur cPanel, et dans deux datacenters différents avec des IPs différentes à chaque fois et possibilité de choisir le pays de localisation des IPs. Comme ça mes clients viennent chez moi et si mes clients veulent avoir directement une synchronisation entre deux de leurs deux serveurs je leur fais pour 2 999 euros (1 journée de travail)

photo
1

8 box/mo with license autom8n (years of experience in this and reliable), free setup :)

Leave a Comment
 
Attach a file