Distributed Cache Client Settings
You can configure settings specific to the distributed cache client node using the NCache Management Center or by manually editing NCache configuration for each client node.
Using the NCache Management Center
Launch the NCache Management Center by browsing to http://localhost:8251 or
<server-ip>:8251
on Windows and Linux.In the left navigation bar, click on Clustered Caches or Local Caches, based on the cache to configure.
Select the cache name, click on View Details.
- This opens up the detailed configuration page for the cache. Go to the Client Nodes tab and click on the
icon to open client node settings.
- On the Main tab, you can configure Connection Timeout, Connection Retries, Retry Interval, and Client Request Timeout. All values are in seconds.
Using the Settings tab, you can:
Enable/Disable client load balancing using the check box Enable Client Load Balancing.
Specify Server Priority for this client.
Change the Sync Mode of the client cache to either Optimistic or Pessimistic.
You can also update the Connection Retries.
Select the checkbox Skip Unavailable ClientCache if you want the application to continue operating on the cluster cache when the Client Cache is down. If this option is unchecked, operations will fail when the Client Cache is unavailable.
- At the Backing Source tab, you can select the default Read-Thru and/or Write-Thru providers, only if these providers are configured for the cache.
- Click on Save Changes to apply this configuration to the cache.
Note
You might get prompted with a dialog box upon these changes, asking whether to reload or overwrite the cache config file.
Manually Editing NCache Configuration
You can also manually edit the Distributed Cache Client Settings as explained below.
Important
Make sure the cache is stopped before making any configuration changes.
In client.ncconf of the server node, add the following information under the <configuration>
tag:
<configuration>
<ncache-server connection-retries="3" retry-connection-delay="0" retry-interval="1" command-retries="3" command-retry-interval="0.1" client-request-timeout="90" connection-timeout="5" port="9800" local-server-ip="20.200.20.40" enable-keep-alive="False" keep-alive-interval="30"/>
<cache id="demoCache" client-cache-id="demoClientCache" client-cache-syncmode="optimistic" skip-client-cache-if-unavailable="True" reconnect-client-cache-interval="10" default-readthru-provider="" default-writethru-provider="" load-balance="True" enable-client-logs="False" log-level="error">
<server name="20.200.20.40"/>
</cache>
</configuration>
Note
Repeat this step for all client nodes.
See Also
Cache Settings
Cache Server Settings
Configure Security
Client Cache Settings