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

Client Death Detection

If a client explicitly disposes its cache connection, the server is notified of the disconnection and can release the associated resources. However, after an unexpected disconnection caused by a crash or network issue, the server may not immediately determine that the client is no longer active.

The Client Death Detection setting allows the server to monitor if a client is disconnected from all cache servers in a clustered cache. This allows the server to determine whether a disconnected client is still active and, after the configured grace interval, release its associated resources if the client is considered dead. The server then frees up resources as necessary to avoid wastage.

Note

This feature can only be enabled via manually editing the config.ncconf file and is disabled by default.

Manually Editing NCache Configuration

You can enable the client death detection by manually editing the NCache configuration file, as explained below:

  • Open %NCHOME%\config\config.ncconf (Windows) or /opt/ncache/config/config.ncconf (Linux) file.

  • Set the enable attribute of to True and configure the as required.

<cache-config ...>
    <cache-settings ...>
        <client-death-detection enable="True" grace-interval="60sec"/>
    </cache-settings>
</cache-config>
Note

The default grace-interval is 60 seconds and it can go up to 180 seconds (or 3 minutes).

  • Restart NCache service on each cache server.

See Also

Client Config (client.ncconf)
Communication Reliability

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