Ashesh
Ashesh

Reputation: 17915

Can you have more than one ASP.NET State Server Service in a cluster?

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.

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?

Upvotes: 3

Views: 3502

Answers (3)

Tormod Hystad
Tormod Hystad

Reputation: 2405

A second ASP.NET State Server Service cannot take over if the first one fails without 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 Jon Galloway's answer).

This behaviour is by design; the ASP.NET state service does not do replication of the session data between servers.

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.

This link has more on Velocity for session state for ASP.NET.

Upvotes: 0

Raffy Arnaez
Raffy Arnaez

Reputation: 11

ASP Stateserver does not replicate session from the 1st node.

But at least keeping your Web up and running on the next retry.

Thought of implementing the ASP State Service on a MSCS Clustered Environment

Upvotes: 1

Jon Galloway
Jon Galloway

Reputation: 53125

I'd look into Session State Partitioning. Good info here: http://blog.maartenballiauw.be/post/2008/01/ASPNET-Session-State-Partitioning-using-State-Server-Load-Balancing.aspx

Upvotes: 1

Related Questions