Create a New Cache Cluster
Using NCache Manager
Select File ->New ->Clustered Cache option.
New Clustered cache wizard will open. Specify the name of the cache, select Data Format and click Next.
Important
Cache with the specified name should not exist on the server; otherwise you get an error message that this cache already exists on this server.
In Select caching topology dialog, select the required cache topology. You can also change the Operation timeout (sec.) and Statistic replication interval (sec.) under the Advanced cluster options.
Specify the desired information and click Next.
If you selected the Partition Replica Cache topology, you have to select a Replication Strategy, either Asynchronous or Synchronous.
Click Next.
Specify the node IP address in text box or select from the Network Neighborhood and click on the > button to add it in the Selected Nodes list.
Click Next once all the required nodes are added.
Change the Cluster Port if required.
Click Next.
In the next dialog, you can change the cache size if required.
Click Next.
In Advanced options dialog, you can configure the following settings:
You can change the eviction policy. The eviction policy will be configured and can be turned on.
You can also change the eviction percentage; items will be evicted from the cache using this percentage value if eviction is enabled.
You can change the clean interval value. Default is 15 seconds.
This cache can be started automatically upon the completion of this process if you have checked the Start this cache on Finish checkbox on this dialog.
You can make the cache to start automatically after service restart by checking the checkbox Auto start this cache on service startup.
Click Finish. Created cache will appear in Cache Explorer under Clustered Caches section.
Using Command Line Tool
Open Command Prompt.
Go to the NCache tools directory:
cd [InstallDir]/bin/tools
Use createcache.exe tool, provide required information:
createcache.exe ClusteredCache /s 20.200.21.95 /S 1024 /t replicated /C 7802
- This will create ClusteredCache of replicated topology on server 20.200.21.51 with size 1024MB on port 7802.
Troubleshooting
Sometimes a cluster can not be formed, or cluster nodes are unable to communicate with each other. It may happen when Server and Cluster ports are blocked by firewall. Following error messages can occur in this case:
Error: "No server available to process request"
Error: "Unable to communicate with server node"
Workaround
"No server available to process request":
Make sure that the Server port (at which NCache Service starts and accepts different client connections) is not blocked by firewall. Default value of this port is '9800'. You can change the default value from Alachisoft.NCache.Service.exe.config file."Unable to communicate with server node":
See if your firewall is allowing the Cluster port. Cluster port is a port at which nodes in a cluster communicate. You can change the default value of these ports from NCache Manager. If you have specified a port range in NCache Manager, unblock all ports in range.NCache Manager unable to connect with NCache Service:
If NCache Manager is unable to connect with NCache Service, even when it is started, then your system firewall might be blocking Service port. Unblock Service port from system firewall.