Data Loading Retries for Persistent Cache
A Distributed Cache with Persistence loads data from the persistence store on cache restart, node join, and leave. During loading, the persistence store can become inaccessible for a running cache due to network failure either for a brief period or a an infinite time. On connection loss with the store, the cache keeps trying to load data on the Load Failure Retry Interval until the connection to the persistence store is re-established.
How to Configure Data Loading Retries for Persistent Cache
You can configure the retry interval, the number of retries and the interval between each retry based on the NCache provided tags. These tags can be found in Alachisoft.NCache.Service.dll.config file present at %NCHOME%\bin\service in Windows and Alachisoft.NCache.Daemon.dll.config file present at NCache Install dir/bin/service in Linux.
The time interval after which the retry job retries to load data of failed buckets during loading can be changed against the NCacheServer.PersistenceLoadFailureRetryInterval
key. The time is specified in minutes.
<add key="NCacheServer.PersistenceLoadFailureRetryInterval" value="3"/>
The number of times a failed bucket is retried to load can be changed against the NCacheServer.PersistenceLoadBucketFailureRetries
key. Once these retries are exhausted, the retry job executes it in the background as per configuration.
<add key="NCacheServer.PersistenceLoadBucketFailureRetries" value="3"/>
The interval between each retry on a failed bucket can be changed against the NCacheServer.PersistenceLoadBucketFailureRetryInterval
key. It is specified in seconds.
<add key="NCacheServer.PersistenceLoadBucketFailureRetryInterval" value="10"/>
See Also
Configure Caches
Configure NCache Persistence Settings
Server Connectivity
Windows Events
Logging