Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

currently I have a site sits on one IIS7 server. When we deploy a new version of the site, we bring the site down and display an offline page. What I really want is have two same exact copies of the site sits in one IIS 7 server and load balance users among both sites. when we deploy a new version of the site, we will bring site1 down (users in site1 automatically routes to site2 on next postback), when site1 deployment is complete, bring site2 down (users in site2 being routes to site1 on next postback). is this even possible?

share|improve this question

migrated from stackoverflow.com Apr 24 '10 at 23:52

This question came from our site for professional and enthusiast programmers.

    
possible duplicate of Zero downtime uploads / Rollback in IIS –  Jesper Mortensen Mar 31 '11 at 9:45
add comment

2 Answers

You can do this with DNS using round robin:

http://en.wikipedia.org/wiki/Round_robin_DNS

HOWTO - Configure Load Balancing

http://www.zytrax.com/books/dns/ch9/rr.html

share|improve this answer
add comment

See my answer to this previous question:
http://serverfault.com/questions/124274/zero-downtime-uploads-rollback-in-iis/126379

The big question is how session handling is done within your application. If it is at all tied to the server instance (in memory, etc.), you will need to fix that before attempting a solution like this.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.