dbTalk Databases Forums  

ASP.NET w/ SQL Server Sessions & Cluster Failover

microsoft.public.sqlserver.clustering microsoft.public.sqlserver.clustering


Discuss ASP.NET w/ SQL Server Sessions & Cluster Failover in the microsoft.public.sqlserver.clustering forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
news.microsoft.com
 
Posts: n/a

Default ASP.NET w/ SQL Server Sessions & Cluster Failover - 05-27-2004 , 01:22 PM






Is there an elegant way to clear out the ADO connection pool used by the SQL
Server State Service following a cluster failover?

We are using a SQL Cluster to store both the ASP Session State database and
our application database.

When the SQL Server cluster is failed-over, any "pointers" to the live
connections stored in the connection pool are made invalid. When the
application tries to reference these "damaged" connections, it throws an
exception, and the pooling mechanism drops the bad connections from the
pool.

In our application, we are using a looping try/catch block to clear out the
bad connections from the pool following a failover, and the users typically
are not affected by the failover as a result of any exceptions in our
application code.

However, we don't have access to the source code for managing the ASPState
connections. It appears as though there is no mechanism for the ASPState
database to clear out the bad connections from the pool following a
failover, and thus the exceptions are affecting users.

Is SQL Server Session State Management even supposed to work with a SQL
Cluster?

Mike Olund
OpenRoad Communications



Reply With Quote
  #2  
Old   
Geoff N. Hiten
 
Posts: n/a

Default Re: ASP.NET w/ SQL Server Sessions & Cluster Failover - 05-27-2004 , 01:35 PM






Same thing happens to us. We use ASP.Net connection pools very heavily and
they have some issues with bad connections after a failover. We also use a
try/catch to reconnect if there is a bad connection. If you find anything
else, please let me know.
--
Geoff N. Hiten
Microsoft SQL Server MVP
Senior Database Administrator
Careerbuilder.com

I support the Professional Association for SQL Server
www.sqlpass.org

"news.microsoft.com" <molund (AT) oroad (DOT) com> wrote

Quote:
Is there an elegant way to clear out the ADO connection pool used by the
SQL
Server State Service following a cluster failover?

We are using a SQL Cluster to store both the ASP Session State database
and
our application database.

When the SQL Server cluster is failed-over, any "pointers" to the live
connections stored in the connection pool are made invalid. When the
application tries to reference these "damaged" connections, it throws an
exception, and the pooling mechanism drops the bad connections from the
pool.

In our application, we are using a looping try/catch block to clear out
the
bad connections from the pool following a failover, and the users
typically
are not affected by the failover as a result of any exceptions in our
application code.

However, we don't have access to the source code for managing the ASPState
connections. It appears as though there is no mechanism for the ASPState
database to clear out the bad connections from the pool following a
failover, and thus the exceptions are affecting users.

Is SQL Server Session State Management even supposed to work with a SQL
Cluster?

Mike Olund
OpenRoad Communications





Reply With Quote
  #3  
Old   
bruce barker
 
Posts: n/a

Default Re: ASP.NET w/ SQL Server Sessions & Cluster Failover - 05-27-2004 , 02:50 PM



there is support in asp.net 2.0, the supported method in asp.net 1.1 is to
change the connection string (thus not reusing any old connections).

if you want an unsupported method, you can use reflection to call an
undocumented method.

(http://www.sys-con.com/dotnet/article.cfm?id=483)


-- bruce (sqlwork.com)



"news.microsoft.com" <molund (AT) oroad (DOT) com> wrote

Quote:
Is there an elegant way to clear out the ADO connection pool used by the
SQL
Server State Service following a cluster failover?

We are using a SQL Cluster to store both the ASP Session State database
and
our application database.

When the SQL Server cluster is failed-over, any "pointers" to the live
connections stored in the connection pool are made invalid. When the
application tries to reference these "damaged" connections, it throws an
exception, and the pooling mechanism drops the bad connections from the
pool.

In our application, we are using a looping try/catch block to clear out
the
bad connections from the pool following a failover, and the users
typically
are not affected by the failover as a result of any exceptions in our
application code.

However, we don't have access to the source code for managing the ASPState
connections. It appears as though there is no mechanism for the ASPState
database to clear out the bad connections from the pool following a
failover, and thus the exceptions are affecting users.

Is SQL Server Session State Management even supposed to work with a SQL
Cluster?

Mike Olund
OpenRoad Communications





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.