transparent migration strategies
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?
7 Replies
~JW
@JshWright:
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.
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.
@jed:
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.
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.
1) Point
2) Point yourdomain.com to your new server
3) Set your webserver to redirect yourdomain.com to
4) wait a few days for yourdomain.com to propagate
–if you have a database do the following--
5) Shutdown the
6) Migrate the database do yourdomain.com
--
7) remove the redirect from yourdomain.com to
8) add a redirect from
9) point
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.