Cache Client Settings
You can configure settings specific to client node as well.
Note
You might get prompted with a dialog box upon these changes, asking whether to reload or overwrite the cache config file. For more detail on maintaining data integrity, refer to this chapter.
Using NCache Web Manager
Launch NCache Web Manager by browsing to
http://localhost:8251
(Windows) or<server-ip>:8251
(Windows + Linux).In the left navigation bar, click on Clustered Caches or 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 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 Sync Mode of 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 NCache Configuration
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="5" 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="demoClusteredCache" load-balance="True" enable-client-logs="False" log-level="error">
<server name="20.200.20.144"/>
</cache>
Note
Repeat this step for all client nodes.
See Also
Cache Settings
Cache Server Settings
Configure Security
Client Cache Settings