Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Mar 14, 2010 4:40 pm 
Offline
Newbie

Joined: Thu Feb 18, 2010 11:11 pm
Posts: 4
Website: http://japanisshinto.com
Location: Rochester, New York
On my last web site migration to Linode, I did the usual thing-- set up a copy of the site, change the DNS records, and wait for those records to propagate. That worked fine, although as I quickly learned, the old address was cached by ISPs, local caches, etc. The end result was that while the majority of people did transition to the new site, others randomly got the old site. That caused some confusion, but because the majority of people on that site were technically aware, it wasn't a big deal.

The next site I'm moving features a user population who are generally clueless regarding anything technical. So for this migration, what I would like to do is find some way to force users who hit the old site (because DNS hasn't propagated) to the new site. The old site would be shut down, and anyone who ended there would be redirected until such time as their DNS was properly updated.

Any simple solutions others have come up for this situation?


Top
   
 Post subject:
PostPosted: Sun Mar 14, 2010 4:49 pm 
Offline
Senior Member

Joined: Mon Oct 27, 2008 10:24 am
Posts: 173
Website: http://www.worshiproot.com
Well, at the very least I would replace the old site with a static "Migration in progress" page, with a brief explanation of what's going on for the less tech-savvy users.

~JW


Top
   
 Post subject:
PostPosted: Sun Mar 14, 2010 5:24 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
JshWright wrote:
a static "Migration in progress" page

+1.

Sometimes it's better to make some of your users wait a day or two than to allow them to keep posting stuff to the old site. They'd be pissed up even more if the stuff they posted mysteriously disappeared!

Alternatively, if all your dynamic data is in MySQL, you can point both sites to the same MySQL instance to keep them in sync while the DNS propagates. This, of course, can a little tricky especially if the old site is on shared hosting.


Top
   
 Post subject:
PostPosted: Sun Mar 14, 2010 9:47 pm 
Offline
Senior Member

Joined: Sat Mar 28, 2009 4:23 pm
Posts: 415
Website: http://jedsmith.org/
Location: Out of his depth and job-hopping without a clue about network security fundamentals
I've always had good luck with the "redirect to the new host" trick, once the switch is flipped. For those folks who do have a cached record, you can make the HTTP server there redirect to something like "http://www2.example.com".

The trick being that "www2" didn't exist before you ventured down this path, which means your users will look it up and it will not be cached.

It takes a little work, but it can be convenient and seamless.

_________________
Disclaimer: I am no longer employed by Linode; opinions are my own alone.


Top
   
 Post subject:
PostPosted: Sun Mar 14, 2010 10:49 pm 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
jed wrote:
I've always had good luck with the "redirect to the new host" trick, once the switch is flipped. For those folks who do have a cached record, you can make the HTTP server there redirect to something like "http://www2.example.com".

The trick being that "www2" didn't exist before you ventured down this path, which means your users will look it up and it will not be cached.

It takes a little work, but it can be convenient and seamless.


This is a great way of doing things and if you set your logging up correctly then you can even track how many people are still using the old website so you know when you can finally take it down.

_________________
Rgds
Stephen
(Linux user since kernel version 0.11)


Top
   
 Post subject:
PostPosted: Mon Mar 29, 2010 3:52 am 
Offline
Senior Member

Joined: Sat May 03, 2008 4:01 pm
Posts: 569
Website: http://www.mattnordhoff.com/
One method I've heard of is to set up a reverse proxy on the old host, pointing to the new one. This obviously eats your bandwidth and adds latency, but it seems quite clever and fun to me. :D

_________________
Matt Nordhoff (aka Peng on IRC)


Top
   
 Post subject:
PostPosted: Mon Mar 29, 2010 4:47 am 
Offline

Joined: Mon Mar 29, 2010 4:39 am
Posts: 1
Make sure you change your DNS TTL (time to live) to 5 minutes. This will cause servers to quickly invalidate your cache and retrieve your new values.

If you're using Linode's DNS servers, be aware they update the zone files every 15 minutes so you may want to try and time this.


Top
   
 Post subject:
PostPosted: Mon Mar 29, 2010 8:07 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
This is what I do (and oddly enough I'm doing right now).

1) Point www.yourdomain.com to your old server
2) Point yourdomain.com to your new server
3) Set your webserver to redirect yourdomain.com to www.yourdomain.com
4) wait a few days for yourdomain.com to propagate
--if you have a database do the following--
5) Shutdown the www.yourdomain.com
6) Migrate the database do yourdomain.com
--
7) remove the redirect from yourdomain.com to www.yourdomain.com
8) add a redirect from www.yourdomain.com to yourdomain.com
9) point www.yourdomain.com to the new server

That way users will only see downtime if the site has a database that needs to be migrated, the only other thing they will notice is that the www. part goes missing.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group