Persistence Cache Settings
A Distributed Cache with Persistence reloads data from the persistence store during state transfer operations (cache restart, node join, or node leave). If the persistence store becomes inaccessible due to a network failure, either temporarily or indefinitely, the cache continues attempting to load data at intervals defined by the Load Failure Retry Interval setting. This process continues until the connection to the persistence store is successfully restored.
Retry Behavior
NCache provides configurable settings to control the retry mechanism used when reloading data from the persistence store after a failure. You can modify the retry interval, the number of retries, and the interval between each retry attempt. 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.
Persistence Data Loading Failure Retries Interval
The PersistenceLoadFailureRetryInterval specifies the time interval (in minutes) after which NCache retries loading data for buckets that failed during the initial load operation. The default value is 3 minutes.
<add key="NCacheServer.PersistenceLoadFailureRetryInterval" value="3" />
Persistence Bucket Loading Failure Retries
The PersistenceLoadBucketFailureRetries defines the total number of retry attempts for loading a failed bucket from the persistence store. Once all retries are exhausted, NCache continues retrying the operation in the background based on the configured retry interval. The default value is 3.
<add key="NCacheServer.PersistenceLoadBucketFailureRetries" value="3" />
Persistence Bucket Loading Failure Retries Interval
The PersistenceLoadBucketFailureRetryInterval specifies the time interval (in seconds) between consecutive retries for loading a failed bucket. The default value is 10 seconds.
<add key="NCacheServer.PersistenceLoadBucketFailureRetryInterval" value="10" />
See Also
Configure Caches
Configure NCache Persistence Settings
Client Connectivity Settings
Windows Events
Logging