my.45n5.com • Subscribe • Forum • Blogs • Top100 • MoneyLinks • About • Advertise
» February 5, 2008 in

Watch this video at Youtube

You should really watch the video to get the best explanation but here goes otherwise:

Uptime with my hosting is a VERY high priority for me with ShowYourAdHere.com. A couple minutes of downtime is bearable, but 3 hours or longer absolutely will not work.

The following is a solution for people that need their site to have the best odds of being up 100% of the time. I'll present 2 solutions, but first:

How Web Hosting Works High Level



There is a Dns Server that gets your request for a web page first.

It takes the urladdress.com and resolves it to an ip address like 132.70.433.34

Basically, that ip address is where your files, pictures, and good stuff is located, we call it the web server.

The way it should work is if the server with your files is down the dns server will just send your visitors to another server. Good.

So what's the problem?

Do NOT let your host manage your DNS



For most of you, including myself until last week, you let your host handle your dns.

Now, when your host goes down, so does your DNS. Bad,bad. There is nobody to tell your visitors to go somewhere else, they are left staring at a blank page and you look like a 3rd grader set the website up.

Introducing Failover Dns



Do NOT let your host handle your dns if you want the best odds of keeping your website live 100% of the time.

Outsource it. I went with a solution called http://www.dnsmadeeasy.com/ failover dns.

Now every couple of minutes DNSmadeeasy checks to see if my server is up. If it's not up it will send visitors to another server I tell them to ;)

Wow, what a beautiful world now ;)

Of course you need another server, but most people have a shared hosting account somewhere that is under utilized that could host a few pages. (if not get one for under $10 per month)

Now that you've got your dns and hosting squared away, let's figure out what to do if your server goes down, because you actually have the POWER to DO SOMETHING now!

Scenario One - Complete Redundancy



This is where you duplicate the entire contents from server 1 onto server 2. The majority of your visitors will never miss a beat if a server goes down.

This is easy with a static website, however for a dynamic website like a blog this solution is difficult to pull off.

Don't sweat though, you can still not show your visitors a "page not found" for hours and provide something useful or better for your users.

The mini site of your site



On server two, assuming server one goes down and the dns sends people to server two now, ANYTHING is better than a "page not found".

In fact, for you widget developers, it's the difference between locking up every single site your widget is on or having the ability to not show the widget or degrade however you like.

There are other options, even a "be back soon" screen with a cute picture is better and shows you at least are still in control. Maybe put your help desk info or contact email/info.

Throw some help files or faq up there for them to read until server one gets online. Maybe let them make suggestions or interact with your site on a limited basis on server 2.

Maybe update them in REAL TIME why they can't have full access to the site but you are working on it and you can keep the communication lines up the entire time.

Just a few suggestions. When you aren't letting your host manage your dns, the sky is the limit, and you won't get caught looking like a third grader manages your hosting.

Happy Hosting



I'm still learning the hosting ropes but I'm trying to learn them quickly and doing all I can to keep my websites live 100% of the time. I started with showyouradhere.com and 45n5.com is next ;)

I will be moving my sites to the scenario that degrades smoothly and at a later date I will be trying to make my main sites 100% redundant.

If you have anything to add I'd love to hear it. Or if you have any questions about the hosting scenarios mentioned above I can try my best to answer them.

Thanks for all the help last week all. :) Happy Hosting.



If you like this post then please consider subscribing to my full RSS feed. You can also Subscribe to 45n5 by Email and have new posts sent directly to your inbox.



Vlad says on February 5, 2008

Great, now you just need to write an ebook on how to implement it step by step.
45n5 () says on February 5, 2008:
@vlad - it's really easy. if you have any questions just fire away ;)
Josh Spaulding says on February 5, 2008

ok, you know I'm technically challended, so if I'm way off tell me. Well I'm sure you would anyway.

So most of my domains are with namecheap and hosted with HostGator. HostGator gives me one primary and one secondary dns.

So when mysite.com is called for through a browser it's going to go to the primary dns by default. But, if the primary dns is down, it will redirect to my secondary dns, correct?

If that's true, then my site should be set up on both the primary and secondary dns.

Is that something I need to do? It seems like that's something the server should do automatically to insure the site doesn't go down.

Am I way off base?
Ruck says on February 5, 2008

I know exactly what your talking about but I wanted to give you a compliment on making such a lively video like that Mark. It kept me interested. You trademarking nicefully? :)
45n5 () says on February 5, 2008:
@josh - yes you get multiple name servers with your registrar, however (most times) they cache the location of your site for a real long time, that's why it takes up to 72 hours to change dns when you change hosts

on something like dnsmadeeasy you can drop the cache to a couple minutes.

Also, dnsmadeeasy will check your site is live every minute and not every few hours.

that's the best I understand it. they are real similar but worlds apart when it comes to actual performance

@ruck - I have no idea where nicefully came from or why i used it so much. glad it made sense
michaelmartine () says on February 5, 2008:
Nicefully just became my favorite new word. Thanks for the eye-opening tutorial. I hadn't known about this before.
45n5 () says on February 5, 2008:
thanks micheal. I wish I had known about this before also ;) lol

glad you liked it
WineMan says on February 6, 2008

Good stuff ---but I strongly believe the 100% uptime should be the responsible of the hosting companies.

When the sites goes down, it should be the responsible of that hosting company to put a page that says...Our webhost ABC is down or experiencing problems.

This tells that it is not your sites ..it is the webhosting.

Compensation should be given to you after that.

Just my IMHO.

** All I care is my sites are up when I sign with you..Mr/Mrs Hosting**
45n5 () says on February 6, 2008:
@wineman - I agree 1000000000%
Sean says on February 6, 2008

Hello, I read your post titled "HowTo: Build A Content Minisite In Under 10 Minutes" and was wondering if you can give me a few ideas on how a site can make $20 per month. I am completely new to making money on the internet and would really appreaciate your advice. I want to come up with a way to make at least $1000.00 per month consistently. Thank you for your time.
MNYMKR says on February 6, 2008

Really good read. Love the blog. Your site has inspired me to do a Joomla set of videos
sparky says on February 7, 2008

That is an /outstanding/ idea. I cannot believe that. As I read this, my jaw dropped open. Oh my god, I want to have their children and I'm a guy!

Fan fricking tastic.

I have _several_ people to show this to. Thanks a bunch!
Staska says on February 7, 2008

So, and what happens if dnsmadeeasy goes down? :)
45n5 () says on February 7, 2008:
@staska - dnsmadeeasy doesn't go down. almost all third party dns providers have 100% uptime records for the past 3-5 years, or since they opened their doors.

@sparky - thanks.
Sean says on February 7, 2008

Thanks for completely ignoring my question above.
45n5 () says on February 7, 2008:
@shawn -

http://www.45n5.com/permalink/product-baiting-an-alternative-to-gaming-social-si.html
JoeTech,com says on February 8, 2008

Great thoughts. It really makes me feel bad about my setup, being a tech guy. I have another server that I can throw a holding page on, where I'll likely have a "Our server is down" page with an affiliate link or two.

I need to get on that soon.
Matt B says on February 8, 2008

A good bet is to get DNS services from two or more providers. Each name server (often in pairs) should resolve you domain name to a different IP in a different part of the world. The TTL should be very small (a few hours at most) and your "fall over" should be on the very last name server listed. Then the named IPs should resolve the URL to a known good server on a different rack again. By the time you have nine dedicated servers you should be fire proof... but that is going to cost a not so small fortune. There are a number of good articles on load balancing which would be dead handy for getting increased reliability.

Thank you for raising the topic - I sure it will foster plenty of debate.

The 45n5.com Membership Site
Try MashupMoney.com, $1 for 7 day trial.

Start Your Own Membership Site
Amember rocks, free download and trial.

Create Your Own Mailing List
Aweber is the best in the business, check them out.
45n5.com - my.45n5.com - A place for webmasters, bloggers, developers, affiliates, and digital hippies. Privacy