Web Servers - Do you get Zero Downtime when Updating a Server?
Last updated by Brady Stroud [SSW] 8 months ago.See historyIf you are dealing with a single server, there is no way to achieve 100% uptime, when updating or restarting a server.
So set your website up correctly with at least 2 front ends, and 1 backend (the SQL Server).
Follow the below steps on your test server first, get the application tested passed, then move on to production.
- Open the Network Load Balancing Manager
- Right click on the machine you want to update | Select Control Host | Click Drain Stop
drain stop - To view the current connections on the server, open a command prompt and enter netstat -an. You will be able to see the connections list dropping as users are sent to the other server
netstat - Allow the NLB to finish sending the connections to the remaining servers. The server you have drain stopped, will turn red when all the users have been moved to the other server
Server turns red - Optional – if you are using Hyper-V, take a snapshot of the server you are about to make changes on
- Restart
Windows update - Optional – Run any automated tests (for example Telerik Tests)
- When the server ready, add it back into the load balancer. Right click on the machine | Select Control Host | Click Start
- The server icon will return to green, and users will start being sent to the server again
Server OK
Congratulations you've just updated your servers with 100% uptime.