Distributed Cache Client Settings
You can configure settings specific to the distributed cache client node as well using the NCache Management Center or by Manually Editing NCache Configuration for each and every client node.
Note
You might get prompted with a dialog box upon these changes, asking whether to reload or overwrite the cache config file.
Distributed Cache Client: 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 Local Caches, based on the cache to configure. Against 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.
- 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.
Manually Editing Distributed Cache Client Settings
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:
<ncache-server connection-retries="10" retry-connection-delay="0" retry-interval="1" command-retries="3" command-retry-interval="0.1" client-request-timeout="90" connection-timeout="5" port="9800"/>
<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.39"/>
</cache>
Note
Repeat this step for all client nodes.
See Also
Cache Settings
Cache Server Settings
Configure Security
Client Cache Settings