开发者

Safe deployment of ASP.Net applications [duplicate]

This question already has answers here: Closed 11 years ago.

Possible Duplicate:

How to deploy an ASP.NET Application with zero downtime

Duplicate Question

Hi All,

I have an asp.net app that I want to deploy开发者_如何学Go safely (with as little down time possible). I would love to do something like blue green deployment but without the need for a second web server.

So, I know I can use load balancing, etc but I need a quick and cheap approach. I was thinking of doing something like:

  • Setting up another website (copy of original) in IIS, currently I use host headers to direct traffic across sites).
  • I could then view the new site locally until the site is totally online (due to NHibernate start up and various other high intensity tasks this takes a while).
  • Once site 2 is totally started I would then change host headers around giving me a much much smaller down time.

So my question is. Has anyone done anything like this? Will IIS restart my app pool or application when changing host headers (making this useless)? Any other options?

Thanks for your help all.

Guido


If you touch web.config, your app pool will recycle. Even then, when you redirect to the new site, it is in a different path and hence a new session object will be created (if you are using session that is). What about the cookie? Would you set it using a root path? Otherwise the cookie will not be shared between the two sites.

The simple solution would be to actually take down the site (app_offline.htm), copy files over and maybe peform a warm startup.

http://learn.iis.net/page.aspx/688/using-the-iis-application-warm-up-module/

Have you considered ARR?

http://www.iis.net/download/applicationrequestrouting

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜