NCache being a network intensive solution has mainly two kinds of communication going on in a cache cluster.
If you have two NICs available on a cache server then it is highly recommended that you use both NICs for these NCache communications.
NCache will start utilizing both Network Interface Cards (NICs) on your Cache Servers, once you have configured our Dual NIC interface feature.
Using Dual NICs will enhance the overall bandwidth throughput by distributing load to two NICs thus immensely increasing performance. One NIC will be dedicated for server-to-server communication inside the cache cluster and second NIC being reserved only for client-to-server communication. In this way, network load for cache communication is distributed on two NICs and you'll be utilizing your resources more efficiently increasing overall performance.
Here is how you can configure NCache dual NIC feature.
There are two ways to configure dual NICs for NCache:
For detailed information on configuring dual NICs please visit NCache Help Document.
For manually specifying separate IPs for NCache cluster server-server communications and client to server communications in order to use two NICs on a cache sever for NCache, you'll have to modify the following two lines in "Alachisoft.NCache.Service.exe.config" file located at (C:\Program Files\NCache\bin\service):
<add key = "NCacheServer.BindToClusterIP" value = "22.214.171.124" /> <add key = "NCacheServer.BindToClientServerIP" value = "126.96.36.199" />
BindToClusterIP: You can inform NCache which Network interface card to use for cluster-wide communication and provide the appropriate IP Address.
BindToClientServerIP: You can inform NCache which interface to use for client-server communication and provide the appropriate IP address. NCache will listen on this IP for all client requests.
Once NCache service IP binding is changed for Dual NICs, you should also make sure that all client nodes configured against this cache cluster should now have their "Client.ncconf" (C:\Program Files\NCache\Config) file updated with the client-server IP address as followed.
For example, for a cache named 'DemoCache' you need to specify IP address of NIC dedicated for client-server communication in Client.ncconf file on client nodes ( same server IP address that you specified for BindToClientServerIP tag above).
<cache id="DemoCache" client-cache-id="" client-cache-syncmode="optimistic" default-readthru-provider="" default-writethru-provider="" load-balance="True"> <server name="188.8.131.52"/>