Client Death Detection
If a client is connected and it disconnects via a cache.dispose
command, the server knows it is disconnected and frees the related resources. However, if it unexpectedly disconnects due to a crash or network glitch, the server does not know.
The Client Death Detection setting allows the server to monitor if a client is disconnected from all cache servers in a clustered cache. This process lets the server internally establish which clients are live, contains data, and which have been disconnected. 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.Change the following section of the cache in question to True and change the
grace-interval
as necessary.
<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
Cache Settings