Forum Moderators: phranque
Is this idea really impossible and what is the best way to say good-buy to a shared hosting?
what is the best way to say good-buy to a shared hosting?
Unless you have your own 24/7 technical staff (or you don't need to be up 24/7) with a secure/stable data center, outsource it.
www.domain.com has a DNS entry pointing to an IP address.
A load balancer (either software or hardware appliance) is listening on port 80 on that IP address.
The load balancer has been configured with a list of server private IP addresses associated with that public IP address.
The load balancer forwards connections to the private IP addresses of your web servers based on round robbin, least connections, or other methods that you choose.
So you could set up your own load balancing, or your web host may offer the service.
What you want is BGP (border gateway protocol). To set this up, you need to get an AS (autonomous system) number from ARIN (American Registry for Internet Numbers), get your upstream service providors to set up your AS number in their BGP tables, and then configure a router on your end. When this is set up, you will end up with ip addresses from both isp connections that can be reached through either connection. If either connection fails, traffic is automagically routed to the other connection. This is usually done on bigger connections than adsl, and since you need to get your ISPs involved, it may be impossible on your adsl connections.
What you will probably get is DNS failover. What you will do is get an ip from each isp, and set up your webserver to answer to either ip. You will also want to set up your DNS with a short TTL (time to live) and both isps ip addresses in round robin. When you have an outage from one of your isps, you will drop the downed isp ip address from dns. A few minutes later (depending on your TTL) almost everyone will be using the good isp. The only real downside to this is that some cacheing dns servers ignore the TTL (I know AOL used to do this), so if they have your bad isp ip address cached, you are out of luck for their users.