Portal Home > Knowledgebase > Articles Database > Web hosting Failsafe solution

Web hosting Failsafe solution

Posted by chrismfz, 11-27-2007, 08:37 AM
Hello people. Several days now I was wondering how can I achieve something like this. (a failsafe solution) We run a small hosting business in Greece having dedicated servers and vps with different control panels like cPanel and Plesk so customers may choose and different servers for DNS and also some spare servers for ..experimental reasons We prefer using vps for web hosting because of its nature (the company we use provide us vps using raid 5 and daily backups and if something goes wrong with the node the technicians knows about it and fix it - from the other side with a dedicated if something will happen I have to inform them and this takes more time when we speak for downtime) Anyway, we unfortunately had a downtime more than 24 hours because of a massive hard disk failure (bad luck maybe..) on a node. And then I started to search for technologies that can prevent that. So I was wondering if there is a possibility to have a second "mirror" server which will be mirroring all users files and mysql databases (and why not emails). But I stuck on DNS. I read about round robin dns solutions and load balancing but this is not what I am looking for. Multiple A or CNAME records will just redirect traffic here or there without having the dns the knowledge if a server is down or not. So is there a dns solution that will tell "If server A is ok > direct traffic there. If not > direct traffic to the backup server till A server is ok (with a checking technique) Is something like this possible? If yes how and what is the name of this technique ? I have some things in mind about mirroring (maybe rsync etc) but I stuck with the dns... Regards, Chris

Posted by SSHocker, 11-27-2007, 08:44 AM
I am already doing this, simply rysnc /home and /var/lib/mysql to the second server. Setup an account with DNS Made Easy and its all done It isn't a cheap way of hosting but it gives great uptime

Posted by chrismfz, 11-27-2007, 09:01 AM
SSHocker thanks for the quick reply I just saw DNS Made Easy website and it looks nice as a service but a) when they ask $1,499.95/50 domains for a year and with limits again (max records etc) it is rough to get an answer b) we also are registrars for .com .net .org and other tlds and .gr too. So we need a solution for our dns servers which they provive dns services to 60+ (10 more domains for their limit plus the xyz future domains) domains now and hopefully more to the future.

Posted by CretaForce, 11-27-2007, 09:05 AM
Do you shutdown mysql server before rsync /var/lib/mysql ?

Posted by foobic, 11-27-2007, 09:09 AM
Yep, me too. The process is called "dns failover" and you can either set it up yourself (monitoring servers and changing your own A records as necessary) or use an external dns provider like dnsmadeeasy. You need to accept that if your primary server fails you'll still get some downtime but for most visitors it will only be a matter of minutes.

Posted by SSHocker, 11-27-2007, 09:15 AM
Its only $60USD per year for I think around 25 domains then 75c per extra domain per year No and never have a drama My rsyncs run hourly

Posted by BuffaloBill, 11-27-2007, 02:05 PM
I do not think that you would need to get their Corporate Account unless you are running some real large sites and need that extra support / queries / options.... Just use their Business Membership for $59.95 per year. Last edited by BuffaloBill; 11-27-2007 at 02:15 PM.

Posted by asmar, 12-04-2007, 06:35 AM
You can get 2 servers and setup them using the Linux high availability project. You only need a decent data center and you will achieve the maximum uptime. PS: Thelei arketo psaksimo...

Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
asia reseller (Views: 425)
JaguarPC down? (Views: 450)