Communication between Cluster nodes is critical for smooth cluster operations. Therefore, NCache provides an option called Heart Beat for the clusters to detect connection breakage with any node of the cluster. Connection breakage may occur due to an unplugged network cable or disabling of a network connection. When this option is enabled, a node of a cluster sends some dummy packets to other nodes and waits for acknowledgment. Therefore, if live nodes do not receive acknowledgments from any idle node after specific duration, they will consider it dead and will update their views by excluding it from the cluster.
There will be no overhead of heartbeat messages when all nodes are active and sending messages to each other.
Using NCache Manager
You can enable or disable heartbeat option from Cluster Settings tab of Cluster view window.
Manually Editing NCache Configuration
For Community Edition, you can manually edit config.ncconf and client.ncconf located at %NCHOME%/config.
Make sure Cache Host Process is stopped before making any configuration changes. If it is not stopped and the changes are made, kill the Cache Host process and then start it.
- Enable/disable heartbeat through config.ncconf by specifying the
use-heart-beatkey in the
<cache-settings ...> <cache-topology topology="partitioned"> <cluster-settings operation-timeout="60sec" stats-repl-interval="1sec" use-heart-beat="True"> ... </cluster-settings> </cache-topology> </cache-settings>
- Once changes are made, start the Cache Host process.