Last post Feb 03, 2008 04:09 PM by Enroth
Jan 08, 2008 05:47 AMemail@example.com|LINK
When I upload a new version of a site it takes a few seconds to bring the application up, plus another a couple of seconds to run all the stored procs to generate the front page, meaining that after each update the site could be off line for 15 - 20 secs.
Is there a way around this?
I was thinking of having two websites on my server and uploading the changes to the back up site, after I have accessed the site and it has had a chance recompile I would then run a script to change the host headers over so that the back up site became the
live site and vice versa, meaning no loss in the site, or at most a second. Is this a good idea? I have had a quick test and it all seems plausable, is there another way to achieve what I am after?
Thanks for your help
DLL IIS restart
Jan 08, 2008 06:08 AM|HostingASPNet|LINK
You could try your approach if the site content is static, if not and you have by example logged in users it will not work. It's much better idea to check the time when your site is less used, and to update in this time.
Jan 08, 2008 06:09 AM|Jeev|LINK
If you have the privilege of having 2 servers, you can set up load balancing so that you can take one server out of the load balance, apply the changes,test it put it back and then do the same on the next server.
This set up would result in zero down time
Jan 08, 2008 09:22 AMfirstname.lastname@example.org|LINK
Thanks for the reply. I did a quick test and when I changed the host headers over the out put cached pages were still cached and the users session id was still the same. I still need to do some more testing. The problem is that even when its not busy there
are still a lot of people on the site plus sometimes I can't wait for a quite time to make updates. How do others deal with this?
Jan 08, 2008 09:31 AMemail@example.com|LINK
Thanks for the reply. Yes load balancing is something we are going to be implementing in the future, I just wanted a quick fix now :0) With load balancing would I need to set up a state server like an SQL Database to store the sesion information because
I couldn't use in proc sessions? How easy is it to do this, I don't suppose there are any good books or information online on how to do this (I am sure there are I haven't googled yet - just checking if you lot know any good resources).
Jan 08, 2008 09:44 AM|Jeev|LINK
In Load balancing there is something called "sticky session" where if server A services the initial request from client A , all further requests from Client A are forwarded to server A. this is one way to proceed if you want to use inproc sessions. My person
preference would however be to use a state server / SQL database. - Setting up a state server should be painless. The only thing which could bite you back is that you have to ensure that all the objects that you drop in the session are serializable
I am sure there are lot of resources on the web on how to set up load balancing .Since our server guys usually do the setting up.. haven't researched that topic a lot
Jan 08, 2008 09:54 AMfirstname.lastname@example.org|LINK
Ok thanks, so when a request comes in what service decides if Server A or Server B processes the request? Last question I promise!
Jan 08, 2008 10:20 AM|Jeev|LINK
It is the load balancing service.Not exactly sure what it is called Have always let the server admins mess with it :-).
Hey glad to help.. so don't hesitate to ask .Will try to answer to the best of my abilities...its my way of giving back to the helpful community we have
Feb 03, 2008 04:09 PM|Enroth|LINK
Guys, if I have 2 VDS with a hosting provider, can I setup load balancing with them? Is there some software solution? And how to sync. the content?