Results 1 to 6 of 6
-
10-03-2007, 06:44 PM #1Junior Guru Wannabe
- Join Date
- Oct 2005
- Posts
- 73
How to use 2 Windows VPSs for Higher reliability ?
I would like your expert opinions regarding this scenario:
In order to increase the reliability of a audio streaming service I am thinking to take the action I describe below.
1. Buy two Windows VPSs with WMS installed.
2. Register a domain name (i.e audiostream.com) with 4 nameservers: ns1.ip1_vps1, ns2.ip2_vps1, ns3.ip1_vps2, ns4.ip2_vps2.
3. Create all publishing points (streams) on both servers.
Normaly VPS1 should serve all clients. In case VPS1 goes down, VPS2 should jump in and serve all clients-connections. As soon as VPS1 becomes available (ns1 & ns2 start responding again), VPS1 starts serving all new connections.
Load balancing or any other kind of advanced load, traffic, etc management is not important.
Then we have the following cases:
1. VPS1 is down , which means that VPS2 should take charge.
2. VPS1 is up (ns, http, ftp services), but WMS1 is down (crashed). Means that the playlist (asx) file should be built so that it also includes the IP, port & publishing points of VPS2. This should be done because ns1 & ns2 will answer without any problem, but WMS1 will be crashed and won't serve any media connections, thus ASX will look for the next available stream in the playlist.
Do you think that the above is possible. Is this gonna work? If not have you got any other suggestions?
-
10-04-2007, 12:00 AM #2Web Hosting Master
- Join Date
- Jun 2003
- Posts
- 703
you can use something like DNSmadeeasy for Failback service between VPS1 and VPS2. I believe you can configure it for services also.
I have used it, not all ISP will follow the low TTL DNS value, but most do. You can even do Round Robin service via DNSMadeeasy.
There are other companies that do the same service, I have only used DNSMadeeasy.
-
10-04-2007, 07:53 AM #3Registered User
- Join Date
- Oct 2003
- Posts
- 374
This is a very common mistake. If we can find who the original person that stated this "Internet urban legend" we would take them out back and shoot them since many of our support tickets are based on this misconception.
But DNS has _never_ worked this way. Actually when I say never I mean that if the resolving name server follows the RFCs then it should never work that way. Since most resolving name servers use Bind, something like djbcache, or Microsoft DNS then they all follow the RFCs here and would not work the way you mentioned either.
When you give your registrar 4 name servers it's not the case that three lay idle until the first one goes down.
If that was the case then there would zero resason to have 13 root name servers.
When you give your registrar 4 name servers then ALL 4 are hit 25% the first time. If that one is down then there is 3 left. So there is a 33% chance of one being chosen. If the second one is down then there would be 2 left and a 50% chance.
Usually a resolving name server can make it up to 3 to 5 checks before it times out and the query fails.
-
10-05-2007, 02:36 AM #4Web Hosting Master
- Join Date
- Jun 2003
- Posts
- 703
-
10-05-2007, 04:49 AM #5WebHosting Master
- Join Date
- Dec 2006
- Posts
- 4,151
The 4 nameservers do not work in a certain order, where if the first is down, it goes to next, etc.
Instead, it's more of a percentage chance.
-
10-05-2007, 12:01 PM #6Junior Guru Wannabe
- Join Date
- Sep 2006
- Location
- Ohio
- Posts
- 63
I also use DNSMadeEasy and like the service a lot. Currently I use it with HostingZoom and Lunarpages. If the HostingZoom account goes down, within a few minutes my sites are pointed to the backup sites on LunarPages.
You can also set up DNSMadeEasy to point at both so that both share the load. If one goes down, then (through failover) you can have them all redirected to just live server very quickly. (As a test I made my sites unavailable on the live server and it took less than 10 minutes for DNSMadeEasy to find the problem (max is 2 to 3 minutes) AND for the Change to propagate so that I could view it from various locations in proxy browsers and my own browser. Very nice!).
Normaly VPS1 should serve all clients. In case VPS1 goes down, VPS2 should jump in and serve all clients-connections. As soon as VPS1 becomes available (ns1 & ns2 start responding again), VPS1 starts serving all new connections.
MattLast edited by Certifiedwebpro; 10-05-2007 at 12:07 PM.