• Facebook
  • Twitter
  • Youtube
  • LinedIn
  • RSS
  • Docs
  • Comparisons
  • Blogs
  • Download
  • Contact Us
Download
Show / Hide Table of Contents

Heartbeat for Cluster Connectivity

Communication between cluster nodes is fundamental to ensuring reliable cluster connectivity, high availability, and fault tolerance. To support this, NCache provides the Heartbeat mechanism that detects node failures and broken connections within a cluster. Connection breakage can occur due to hardware or network issues such as unplugged network cables, disabled NICs, firewall drops, or software defined network disruptions. When enabled, Heartbeat allows cluster nodes to periodically exchange dummy packets during idle periods to verify connectivity. Each node waits for acknowledgments from other nodes within a configured timeout interval. If a live node does not receive an acknowledgment from another node within this duration, the unresponsive node is considered dead and is excluded from the cluster through an updated cluster view. The Heartbeat mechanism incurs no performance overhead during active communication, as heartbeat messages are only sent when nodes are idle, making it well suited for production environments susceptible to transient network issues.

Using the NCache Management Center

  • Launch the NCache Management Center by browsing to http://localhost:8251 or <server-ip>:8251.

  • In the left navigation bar, click on Clustered Caches or Local Caches, based on the cache to configure.

  • Select the cache name, click on View Details.

Important

Ensure the cache is stopped before proceeding.

NCache Management Center showing the cache list with the selected cache's View Details option highlighted, indicating where to access detailed configuration settings for a clustered or local cache

  • This opens the detailed configuration page for the cache. Go to the Advanced Settings tab and click on Cluster Settings in the left bar.

  • Select the Use Heart Beat checkbox in Advanced Cluster Options to enable Heartbeat.

NCache Management Center Advanced Cluster Options screen displaying the Use Heart Beat checkbox enabled within Cluster Settings, used to configure heartbeat-based node connectivity monitoring.

  • Click on Save Changes at the end of the page to apply this configuration to the cache.

Manually Editing NCache Configuration

You can manually configure the NCache configuration file as explained below:

Important

Ensure the cache is stopped before making any configuration changes.

  • Enable/Disable Heartbeat through the config.ncconf file by specifying the use-heart-beat in the <cluster-settings> tag:
 <cache-settings ...>
   <cache-topology topology="partitioned-replica">
    <cluster-settings operation-timeout="60sec" stats-repl-interval="60sec" use-heart-beat="False">
      ...
     </cluster-settings>
   </cache-topology>
</cache-settings>
  • Once the changes are made, start the cache and restart the NCache Service.

See Also

Communication Reliability
Bind Cluster and Client/Server IP with Multiple NICs
Auto Start Cache on Boot
Nagle's Algorithm

Contact Us

PHONE

+1 214-619-2601   (US)

+44 20 7993 8327   (UK)

 
EMAIL

sales@alachisoft.com

support@alachisoft.com

NCache
  • Edition Comparison
  • NCache Architecture
  • Benchmarks
Download
Pricing
Try Playground

Deployments
  • Cloud (SaaS & Software)
  • On-Premises
  • Kubernetes
  • Docker
Technical Use Cases
  • ASP.NET Sessions
  • ASP.NET Core Sessions
  • Pub/Sub Messaging
  • Real-Time ASP.NET SignalR
  • Internet of Things (IoT)
  • NoSQL Database
  • Stream Processing
  • Microservices
Resources
  • Magazine Articles
  • Third-Party Articles
  • Articles
  • Videos
  • Whitepapers
  • Shows
  • Talks
  • Blogs
  • Docs
Customer Case Studies
  • Testimonials
  • Customers
Support
  • Schedule a Demo
  • Forum (Google Groups)
  • Tips
Company
  • Leadership
  • Partners
  • News
  • Events
  • Careers
Contact Us

  • EnglishChinese (Simplified)FrenchGermanItalianJapaneseKoreanPortugueseSpanish

  • Contact Us
  •  
  • Sitemap
  •  
  • Terms of Use
  •  
  • Privacy Policy
© Copyright Alachisoft 2002 - . All rights reserved. NCache is a registered trademark of Diyatech Corp.
Back to top