On several large-scale websites, I've seen being redirected from http://www.example.com/ to http://www2.example.com/
One of such examples is Netflix.
My hypothesis is that this is used to:
Either distribute the load across data centers before even reaching the load balancers (clients from some IPs are redirected to
www2.
during a session, while others still usewww.
),Or, less probably, switch users to another data center during a maintenance operation. I say "less probably" since those switches are quite frequent—I hardly doubt maintenance operations on front load balancers are done that often.
In the first case, what are the benefits of this technique?
In the second case, wouldn't a change in DNS records be enough?