<p>We have a 4 server cluster running ASP.NET web application using ASP.NET State Server Service for session. On one of the 4 servers ASP.NET State Server Service is running and other servers are configured to look at this. Very often we have to patch the servers, and applying patch on the State Server requires few minutes of downtime. </p>

<p>Is there a way to configure more than two ASP.NET State Server Services in a cluster, so if one goes down, the other takes over?</p>

[{'answer_id': 74221, 'author': 'Jon Galloway', 'author_id': 5, 'author_profile': 'https://Stackoverflow.com/users/5', 'pm_score': 1, 'selected': False, 'text': '<p>I\'d look into Session State Partitioning. Good info here:\n<a href="http://blog.maartenballiauw.be/post/2008/01/ASPNET-Session-State-Partitioning-using-State-Server-Load-Balancing.aspx" rel="nofollow noreferrer">http://blog.maartenballiauw.be/post/2008/01/ASPNET-Session-State-Partitioning-using-State-Server-Load-Balancing.aspx</a></p>\n'}, {'answer_id': 634383, 'author': 'Tormod Hystad', 'author_id': 73960, 'author_profile': 'https://Stackoverflow.com/users/73960', 'pm_score': 0, 'selected': False, 'text': '<p>A second ASP.NET State Server Service cannot take over if the first one fails <em>without</em> losing the part of session info stored on the first server. New sessions will be handled fine by the second server. To get this behaviour you need to set up session state partitioning (see <a href="https://stackoverflow.com/questions/74190/can-you-have-more-than-one-asp-net-state-server-service-in-a-cluster/74221#74221">Jon Galloway\'s answer</a>).</p>\n\n<p>This behaviour is by design; the ASP.NET state service does not do replication of the session data between servers.</p>\n\n<p>If you need out of process session data replicated to several servers you must either use one of the commercial offerings (ScaleOut, for instance) or wait for Microsoft Project Velocity to become production-ready. Personally I am eagerly awaiting the release of Velocity and will switch to it from ASP.NET state server as soon as I feel confident in the product.</p>\n\n<p><a href="http://blogs.msdn.com/velocity/archive/2008/06/05/how-to-use-session-store-provider-microsoft-project-code-named-velocity.aspx" rel="nofollow noreferrer">This link</a> has more on Velocity for session state for ASP.NET.</p>\n'}, {'answer_id': 4207866, 'author': 'Raffy Arnaez', 'author_id': 511177, 'author_profile': 'https://Stackoverflow.com/users/511177', 'pm_score': 1, 'selected': False, 'text': '<p>ASP Stateserver does not replicate session from the 1st node.</p>\n\n<p>But at least keeping your Web up and running on the next retry.</p>\n\n<p>Thought of implementing the ASP State Service on a MSCS Clustered Environment</p>\n'}]
['https://Stackoverflow.com/questions/74190', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/12872/']