Web Hosting Talk







View Full Version : Information needed on Mirroring of servers


nitaish
04-01-2006, 07:36 AM
Hello,
I have a requirement for which I need an expert advice. I have a server in USA. Now I want to setup a server in India as a mirror for the server which is in USA. The mirroring will be in such a way that whatever data is being written in the hard drive of the server in USA, the same gets written in the server which is in India. If there is a problem in the USA based server, the websites will be visible from India. I have heard that there are some mirroring software available which will help me in doing this. Can anybody tell me where to find such a software along with the technical details on server mirroring?

netserve
04-02-2006, 04:08 PM
You could use Rsync to mirror the sites every 15 mins but it's not a real time solution.

If you're running a site that has realtime data being updated via php or perl then it would make sense to write the backup/mirror process into that code.

tamasrepus
04-02-2006, 06:50 PM
There isn't an easy way to do this. Good luck!

If you were on a LAN, it'd be a slightly different matter... There are network filesystems and a few distributed filesystems you could use (NFS, Coda, etc). The performance of these over the Internet, especially to the other side of the world from the US to India, would however be very miserable.

tamasrepus
04-02-2006, 06:52 PM
Hrm, a solution came to mind: it sounded as if you only wanted to provide a local mirror of the US-based site locally to India. Instead of mirroring the entire site you may want to consider setting up some kind of caching proxy. Squid can do this for you.

The first request for a page would be slow, but subsequent requests would be much faster. And it requires no/little maintenance after the initial setup.

nitaish
04-03-2006, 03:22 AM
Hello All,
First of all let me thank you all for the replies given by you. I have heard from various sources that there are certain mirroring software available which copies the data directly on the second server whenever it is written in the main server. If anybody has any idea of such a software, please let me know.