<p>We have a number of web-apps running on IIS 6 in a cluster of machines. One of those machines is also a state server for the cluster. We do not use sticky IP's.</p>

<p>When we need to take down the state server machine this requires the entire cluster to be offline for a few minutes while it's switched from one machine to another.</p>

<p>Is there a way to switch a state server from one machine to another with zero downtime?</p>

[{'answer_id': 65321, 'author': 'WildJoe', 'author_id': 9052, 'author_profile': 'https://Stackoverflow.com/users/9052', 'pm_score': 1, 'selected': False, 'text': "<p>You could use the SQL server option to store state. I've used this in the past and it works well as long as the ASPState table it creates is in memory. I don't know how well it would scale as an on-disk table.</p>\n\n<p>If SQL server is not an option for whatever reason, you could use your load balancer to create a virtual IP for your state server and point it at the new state server when you need to change. There'd be no downtime, but people who are on your site at the time would lose their session state. I don't know what you're using for load balancing, so I don't know how difficult this would be in your environment.</p>\n"}, {'answer_id': 471017, 'author': 'jwmiller5', 'author_id': 7824, 'author_profile': 'https://Stackoverflow.com/users/7824', 'pm_score': 2, 'selected': False, 'text': '<p>You could use <a href="http://msdn.microsoft.com/en-us/library/dd187409.aspx" rel="nofollow noreferrer">Velocity</a>, which is a distributed caching technology from Microsoft. You would install the cache on two or more servers. Then you would <a href="http://blogs.msdn.com/velocity/archive/2008/10/29/changes-to-session-state-provider-configuration-web-config-for-ctp2.aspx" rel="nofollow noreferrer">configure your web app</a> to store session data in the Velocity cache. If you needed to reboot one of your servers, the entire state for your cluster would still be available. </p>\n'}]
['https://Stackoverflow.com/questions/65273', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1463/']