Bind to Multiple Network Interface Cards
When a machine has multiple Network Interface Cards (NICs), NCache allows you to specify which network interface is used for cluster-wide communication and which interface is used for client communication. These settings are configured through the NCache service configuration file by specifying the IP addresses to bind each type of communication.
To bind cluster communication, such as node membership and data synchronization, to a specific network interface, provide the required IP address in the service configuration file:
<add key="NCacheServer.BindToClusterIP" value="20.200.20.40"/>
For client-server communication, specify the IP address of the network interface that the NCache server should bind to for client connections:
<add key="NCacheServer.BindToClientServerIP" value="20.200.20.40"/>
Configuring separate network interfaces for cluster and client communication improves overall application performance. Cluster communication typically involves lower data transfer rates and can therefore be assigned to a medium-spec network card. However, client-server communication generally handles higher traffic volumes and has a direct impact on performance. Therefore, it is generally suggested to assign a high-end network card for client connections.