Failover for AppFabric Cache session state provider

495 views Asked by At

Hey stackoverflow fans,

I have a question about AppFabric cache. We have 3 AppFabric cache nodes configured as one cache cluster to achieve High Availability. We use it for sessions in Asp.Net applications.

Builtin AppFabric cache session state provider has such configuration

  <dataCacheClient>    
    <hosts>
      <host name="CacheServer1" cachePort="22233"/>
      <host name="CacheServer2" cachePort="22233"/>
      <host name="CacheServer3" cachePort="22233"/>
    </hosts>
  </dataCacheClient>

When I try to simulate fail, and stoping one node in that cache cluster, then session state provider begin to throw an errors that it can't connect to that node. It happens not for each request, but for some of them. I thought that session state provider will understand that node is failed, and won't use it for some time, but it still tries to use it. and application users affected by these errors.

Is there a way to force session state provider to not use this cache node for some time? Or maybe some automatic algorithm that will check node availability and use it again, when node is restored?

0

There are 0 answers