473,387 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to increase web server uptime with DNS failover


How to increase web server uptime with DNS failover:

For illustration, let's start with some really bad hosting...

Find four free web hosts that are each 90% reliable
-- in other words they each are down on average one
day out of ten. Use a failover DNS system with monitoring
to switch servers if one fails. On average:

One server will be down one day out of ten

Two servers will be down one day out of a hundred

Three servers will be down one day out of a thousand

All four servers -- and thus your website -- will be
down at the same time one day out of ten thousand.

Two servers with 99% uptime will also be down at the same
time one day out of ten thousand. Three at 99% will be
down at the same time one day out of a million.

In addition, there will be a delay for some users before
the new server is switched in. One website measured this
as follows:

After 5 minutes, 3% of visitors see the new server.
After 10 minutes, 20% of visitors see the new server.
After 15 minutes, 37% of visitors see the new server.
After 20 minutes, 59% of visitors see the new server.
After 25 minutes, 69% of visitors see the new server.
After 30 minutes, 76% of visitors see the new server.
After 35 minutes, 80% of visitors see the new server.
After 45 minutes, 90% of visitors see the new server.
After 90 minutes, 95% of visitors see the new server.
After 18 hours, 99% of visitors see the new server.

With any number of servers at 90% uptime, this will
happen on average every ten days. With any number of
servers at 99% uptime, this will happen on average
every hundred days.

Needless to say, this works even better if you start
with high-uptime paid servers.

References:
http://blog.pyromod.com/2007/09/viab...-failover.html
http://www.webhostingtalk.com/showthread.php?t=524788
http://www.dnsmadeeasy.com/s0306/prod/dnsfosm.html
http://www.georedundanthosting.com/p...t-hosting.aspx
http://edgedirector.com/app/back.htm
http://www.webstrikesolutions.com/Page_ID.aspx?IDTXT=36


--
Guy Macon <http://www.GuyMacon.com/Guy Macon <http://www.GuyMacon.com/>
Guy Macon <http://www.GuyMacon.com/Guy Macon <http://www.GuyMacon.com/>
Guy Macon <http://www.GuyMacon.com/Guy Macon <http://www.GuyMacon.com/>
Guy Macon <http://www.GuyMacon.com/Guy Macon <http://www.GuyMacon.com/>
Oct 26 '08 #1
8 2701

Guy Macon <http://www.GuyMacon.com/wrote:
>
How to increase web server uptime with DNS failover:

For illustration, let's start with some really bad hosting...

Find four free web hosts that are each 90% reliable
-- in other words they each are down on average one
day out of ten. Use a failover DNS system with monitoring
to switch servers if one fails. On average:

One server will be down one day out of ten

Two servers will be down one day out of a hundred

Three servers will be down one day out of a thousand

All four servers -- and thus your website -- will be
down at the same time one day out of ten thousand.

Two servers with 99% uptime will also be down at the same
time one day out of ten thousand. Three at 99% will be
down at the same time one day out of a million.

In addition, there will be a delay for some users before
the new server is switched in. One website measured this
as follows:

After 5 minutes, 3% of visitors see the new server.
After 10 minutes, 20% of visitors see the new server.
After 15 minutes, 37% of visitors see the new server.
After 20 minutes, 59% of visitors see the new server.
After 25 minutes, 69% of visitors see the new server.
After 30 minutes, 76% of visitors see the new server.
After 35 minutes, 80% of visitors see the new server.
After 45 minutes, 90% of visitors see the new server.
After 90 minutes, 95% of visitors see the new server.
After 18 hours, 99% of visitors see the new server.

With any number of servers at 90% uptime, this will
happen on average every ten days. With any number of
servers at 99% uptime, this will happen on average
every hundred days.

Needless to say, this works even better if you start
with high-uptime paid servers.

References:
http://blog.pyromod.com/2007/09/viab...-failover.html
http://www.webhostingtalk.com/showthread.php?t=524788
http://www.dnsmadeeasy.com/s0306/prod/dnsfosm.html
http://www.georedundanthosting.com/p...t-hosting.aspx
http://edgedirector.com/app/back.htm
http://www.webstrikesolutions.com/Page_ID.aspx?IDTXT=36
More References:
http://www.simplefailover.com/outbox/dns-caching.pdf
http://ausweb.scu.edu.au/aw03/papers...oth/paper.html
http://support.easydns.com/Failoverfaq.php
http://edgedirector.com/htm/note.htm


--
Guy Macon <http://www.GuyMacon.com/Guy Macon <http://www.GuyMacon.com/>
Guy Macon <http://www.GuyMacon.com/Guy Macon <http://www.GuyMacon.com/>
Guy Macon <http://www.GuyMacon.com/Guy Macon <http://www.GuyMacon.com/>
Guy Macon <http://www.GuyMacon.com/Guy Macon <http://www.GuyMacon.com/>


Oct 26 '08 #2
On Sun, 26 Oct 2008 17:11:35 +0000, Guy Macon wrote:
How to increase web server uptime with DNS failover:
Two servers with 99% uptime will also be down at the same time one day
out of ten thousand. Three at 99% will be down at the same time one day
out of a million.
....as long as they run different operating systems and different servers
and host different websites, and are on different internets and are
independent in every other conceivable way.
Oct 27 '08 #3

viza wrote:
>
Guy Macon <http://www.GuyMacon.com/wrote:
>How to increase web server uptime with DNS failover:
>Two servers with 99% uptime will also be down at the same time one day
out of ten thousand. Three at 99% will be down at the same time one day
out of a million.

...as long as they run different operating systems
Nope. They can both be running on linux. If every linux system
goes down at the same time, having one of your copies on, say,
solarus won't help you: the entire internet will be down.
>and different servers
I already specified that. Did you bother to read the post you are
responding to?
>and host different websites,
Nope. two servers in different places won't go down at the
same time just because the are serving the same HTML.
>and are on different internets
Now you are just being silly.
>and are independent in every other conceivable way.
That's not how the math behind redundancy works. the two
redundant systems have to not share a single point of
failure. Being "independent in every other conceivable
way." is not a requirement. My cellphone and my laser
printer both share the attribute of having copper
conductors and silicon microprocessors, (and thus are
not " independent in every conceivable way" but those
are not common points of failure. A copper wire may
fail, but all copper wires on earth are not going to
fail at the same time.

DNS failover can increase web server uptime. That is a
basig engineering calulation that has been tested many
times of many systems.

"Arguing with anonymous strangers on the Internet is a sucker's
game because they almost always turn out to be -- or to be
indistinguishable from -- self-righteous sixteen-year-olds
possessing infinite amounts of free time."
-Neil Stephenson, _Cryptonomicon_

--
Guy Macon
<http://www.GuyMacon.com/>

Oct 27 '08 #4
viza wrote:
On Sun, 26 Oct 2008 17:11:35 +0000, Guy Macon wrote:
>How to increase web server uptime with DNS failover:
>Two servers with 99% uptime will also be down at the same time one
day
out of ten thousand. Three at 99% will be down at the same time one
day out of a million.

...as long as they run different operating systems and different
servers and host different websites, and are on different internets
and are independent in every other conceivable way.
The OS they run is irrelevant. Different systems on different networks
is the only thing that really plays a role, not the web site, type of
web site, platform/OS, or anything else. None of that would help
ensure better uptime, and only the network used between the two would
matter.

Ideally, you want to host DNS on different networks so if a DNS server
fails, the requestor's system or network doesn't see it as nonexistent
(just non responsive). There's a difference between non responsive,
down and non existent and those responses could be cached.

Beyond DNS, is actual DNS round-robin balancing, so if one system or
service goes down (not the DNS server/service) the other will be used
(one is down, too slow, overloaded, etc., the other one is used), but
you'd want to just do more than a round-robin solution for failover
services, if you have the option to.
--
Tim Greer, CEO/Founder/CTO, BurlyHost.com, Inc.
Shared Hosting, Reseller Hosting, Dedicated & Semi-Dedicated servers
and Custom Hosting. 24/7 support, 30 day guarantee, secure servers.
Industry's most experienced staff! -- Web Hosting With Muscle!
Oct 28 '08 #5
Guy Macon wrote:
viza wrote:
>Guy Macon <http://www.GuyMacon.com/wrote:
>>How to increase web server uptime with DNS failover:
Two servers with 99% uptime will also be down at the same time one day
out of ten thousand. Three at 99% will be down at the same time one day
out of a million.
...as long as they run different operating systems

Nope. They can both be running on linux. If every linux system
goes down at the same time, having one of your copies on, say,
solarus won't help you: the entire internet will be down.
>and different servers

I already specified that. Did you bother to read the post you are
responding to?
>and host different websites,

Nope. two servers in different places won't go down at the
same time just because the are serving the same HTML.
>and are on different internets

Now you are just being silly.
>and are independent in every other conceivable way.

That's not how the math behind redundancy works. the two
redundant systems have to not share a single point of
failure. Being "independent in every other conceivable
way." is not a requirement. My cellphone and my laser
printer both share the attribute of having copper
conductors and silicon microprocessors, (and thus are
not " independent in every conceivable way" but those
are not common points of failure. A copper wire may
fail, but all copper wires on earth are not going to
fail at the same time.
But he's right - both systems share the same internet. Completely
different than your cell phone and laser printer. This includes, among
other things, the DNS system, which isn't necessarily independent of
other parts of the internet.

They are a common point of failure.
DNS failover can increase web server uptime. That is a
basig engineering calulation that has been tested many
times of many systems.

"Arguing with anonymous strangers on the Internet is a sucker's
game because they almost always turn out to be -- or to be
indistinguishable from -- self-righteous sixteen-year-olds
possessing infinite amounts of free time."
-Neil Stephenson, _Cryptonomicon_


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Oct 28 '08 #6
Hi

On Mon, 27 Oct 2008 23:09:08 +0000, Guy Macon wrote:
viza wrote:
>>Guy Macon <http://www.GuyMacon.com/wrote:
>>How to increase web server uptime with DNS failover:
>>Two servers with 99% uptime will also be down at the same time one day
out of ten thousand. Three at 99% will be down at the same time one
day out of a million.

...as long as they run different operating systems
>>and different servers
>>and host different websites,

Nope. two servers in different places won't go down at the same time
just because the are serving the same HTML.
Just as an example: consider a site that goes down because of a
vulnerability in some bloated php cms. If your two machines are running
the same cgi scripts then they are more likely to both go down.

Redundancy does increase uptime, but to claim to be able to calculate it
quantitatively without in depth analysis of the likelihood and
independence of every possible source of downtime is like picking numbers
out of a hat. In case you don't have a degree in statistic and several
years worth of logs for a few thousand servers then you are just making
numbers up out of nothing.

Your advice is worthwhile and may even be helpful to people, but your
numbers are just a fantasy.
Oct 28 '08 #7

viza wrote:
>
Guy Macon <http://www.GuyMacon.com/wrote:
>viza wrote:
>>>Guy Macon <http://www.GuyMacon.com/wrote:

How to increase web server uptime with DNS failover:

Two servers with 99% uptime will also be down at the same time one day
out of ten thousand. Three at 99% will be down at the same time one
day out of a million.

...as long as they run different operating systems
>>>and different servers
>>>and host different websites,

Nope. two servers in different places won't go down at the same time
just because the are serving the same HTML.

Just as an example: consider a site that goes down because of a
vulnerability in some bloated php cms. If your two machines are running
the same cgi scripts then they are more likely to both go down.

Redundancy does increase uptime, but to claim to be able to calculate it
quantitatively without in depth analysis of the likelihood and
independence of every possible source of downtime is like picking numbers
out of a hat. In case you don't have a degree in statistic and several
years worth of logs for a few thousand servers then you are just making
numbers up out of nothing.

Your advice is worthwhile and may even be helpful to people, but your
numbers are just a fantasy.
The title of this thread is "How to increase web server uptime with
DNS failover" and the text of the starting post compares multiple
servers with DNS failover with single servers. Your example of a
CGI script bringing down multiple servers would also bring down
a single server, and thus does not enter into a calculation for
increasing web server uptime with DNS failover. There are a great
number of things that are equally likely to bring down both the
single server and the multiple servers with DNS failover. The
sun going supernova, for example. If we were trying to predict
absolute reliability, we would have to account for all such
factors. If, as is the case here, we are calculating reliability
increase due to using multiple servers with DNS failover, all such
factors can be ignored.

--
Guy Macon
<http://www.GuyMacon.com/>

Oct 28 '08 #8
Guy Macon wrote:
viza wrote:
>>Guy Macon wrote:
>>viza wrote:
Guy Macon wrote:

How to increase web server uptime with DNS failover:

Two servers with 99% uptime will also be down at the same time one
day out of ten thousand. Three at 99% will be down at the same time
one day out of a million.

...as long as they run different operating systems
and different servers
and host different websites,

Nope. two servers in different places won't go down at the same time
just because the are serving the same HTML.

Just as an example: consider a site that goes down because of a
vulnerability in some bloated php cms. If your two machines are running
the same cgi scripts then they are more likely to both go down.

Redundancy does increase uptime, but to claim to be able to calculate it
quantitatively without in depth analysis of the likelihood and
independence of every possible source of downtime is like picking
numbers out of a hat. In case you don't have a degree in statistic and
several years worth of logs for a few thousand servers then you are just
making numbers up out of nothing.

Your advice is worthwhile and may even be helpful to people, but your
numbers are just a fantasy.

Your example of a CGI script bringing down multiple servers would also
bring down a single server,and thus does not enter into a calculation
for increasing web server uptime with DNS failover.
If we were trying to predict absolute reliability, we would have to
account for all such factors. If, as is the case here, we are
calculating reliability increase due to using multiple servers with DNS
failover, all such factors can be ignored.
You are either contradicting yourself or demonstrating a basic ignorance
of statistics. Have you considered working for the government?

Your original statement was "Two servers with 99% uptime will also be
down at the same time one day out of ten thousand"

This assumes that all causes of downtime are completely independent,
which they are not.

You cannot just say that non-independent sources of downtime are
"irrelevant", because they are included in the numbers that you have
already given.

Suppose you had said "two servers which independently go down for six
hours due to entirely internal hardware failure on average once a year,
and also at some unspecified interval for other reasons" then you could
calculate the uptime improvement by using redundant servers, but you
would then still have to add back onto that the downtime caused by non-
independent sources, and this would mask the majority of the miracle
effect that you are touting.

To reiterate, redundancy does increase uptime but your numbers are pure
fantasy.

viza
Oct 29 '08 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Ben Allen | last post by:
Is there a way (through a variable) to show the date of the last server reboot i.e. when PHP last started running? As I am trying to show the server uptime, which of course only works from the last...
4
by: Chris Gatto | last post by:
Hello, My organization is currently considering the purchase of a new intranet application server and we are looking for opinions from those who have been down this road before. In brief the...
6
by: aj | last post by:
I currently have 2 official DB2 Workgroup Edition licenses for my 2 v8 production servers. I also have tech support/software upgrade agreements in place for both servers. I am interested in...
1
by: news.microsoft.com | last post by:
Is there an elegant way to clear out the ADO connection pool used by the SQL Server State Service following a cluster failover? We are using a SQL Cluster to store both the ASP Session State...
1
by: | last post by:
My scenario is that I have two webservers/database servers that I'm trying to make redundant in terms of filesystems, web services, and database services: + filesystems are replicated using server...
1
by: Mark D Powell | last post by:
I have a production failover cluster running SQL Server 2000 at SP3 that I want to upgrade to SP4. I do not have a test failover cluster to test with so I need the install on the primary server to...
2
by: Jay Balapa | last post by:
Hello, We have two Windows 2003 servers one running IIS and another for SQL Server. We are at a stage where we need to load balance and provide a failover. Can you show us a technical...
0
by: streamkid | last post by:
hello.. could anyone please help me build a uptime script for openbsd? i tried phpsysinfo, it doesn't work (only uptime works, and that's around 15k days :p) i tried these: <?php...
0
by: Vinod Sadanandan | last post by:
Fast-Start Failover An Overview In Dataguard Environment ============================================================================= This article describes the automatic fast start failover...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.