• Products
  • Solutions
  • Customers
  • Resources
  • Company
  • Pricing
  • Download
Try Playground
  • Monitor Caches
  • Logging
  • Cache Health Alerts
Show / Hide Table of Contents
  • Administrator's Guide
  • NCache Architecture
    • Cache Topologies
      • Partitioned Topologies
      • Replicated Topology
      • Mirrored Topology
      • Scalability in Topologies
    • Dynamic Clustering
    • Local Cache
    • Cache Client
    • Client Cache
    • Bridge for WAN Replication
    • Connectivity with Load Balancer
    • Serialization Format
    • Data Encryption
    • Data Compression
    • Data Load Balancing
    • Pipelining
    • Cache Server Backward Compatibility
    • Client Backward Compatibility
    • Eviction
    • Indexing
    • Split-Brain
    • Maintenance Mode
    • Runtime Data Sharing
    • Portable Data Types
    • Class Versioning
    • IP Binding with Multiple NICs
    • Graceful Node Down
    • Separate Cache Host Process
    • Self Healing Dynamic Clustering
    • Distributed Cache with Persistence
  • NCache Management Center
  • Configure Caches
    • Create a Cache
      • Local Cache Overview
        • Local Cache
        • Local Cache with Persistence
        • Pub/Sub Messaging Cache
        • Add Existing Cache
      • Clustered Cache Overview
        • Distributed Cache
        • Distributed Cache with Persistence
        • Pub/Sub Messaging Cache
        • Add Existing Cache
        • Troubleshooting
    • Remove Cache
    • Clear Cache
    • Add Server Node
    • Remove Server Node
    • Add Test Data
    • Configure Query Indexes
    • Configure JSON Query Indexes
    • Compact Serialization
      • Non-Generic Registration
      • Non-Generic Unregistration
      • Generic Registration
      • Using Type Handler
    • Deploy Providers
    • Configure Custom Dependency
    • Add Data Source Providers
      • Read-through Provider
      • Write-through Provider
      • Write-behind Provider
    • Loader and Refresher
    • Configure Maintenance Mode
      • Stop for Maintenance Mode
      • Exit Maintenance Mode
    • Configure LINQPad
      • Configure LinqPad for NCache
      • Querying Data in LinqPad
  • Configure Clients
    • Add Client Node
    • Remove Client Node
  • Configure Client Cache
    • Create Client Cache
    • Create Client Cache with NuGet
    • Enable Client Cache on Client Nodes
    • Disable Client Cache on Client Nodes
    • Remove Client Cache
  • Management Operations
    • Start Cache
    • Stop Cache
    • Restart Cache
    • Manage Cache Service on a Server Node
    • Data Load Balancing
    • Invoke Refresher Dataset
    • Import/Export Cache Data
    • Suspend/Resume NCache Data Persistence
    • Backup and Restore NCache Persisted Data
  • Cache Settings
    • General Cache Settings
      • Cache Size
      • Cache Isolation Levels
      • Cache Serialization Format
      • Cache Data Expiration
    • Cache Cluster Settings
      • Ports
      • Operation Timeout
      • Configure Pipelining
      • Statistic Replication Interval
      • Connection Retries
      • Retry Interval
      • Split-Brain Auto Recovery
    • NCache Persistence Settings
      • Store Information
      • Persistence Interval
    • Error Logging
    • Cache Level Events
    • Client Activity Events
    • Eviction Policy
    • MapReduce
    • Register Classes for Portable Data Sharing
    • Compression
    • Email Notifications
    • Bind IP with Multiple NICs
    • Heartbeat
    • Keep Alive
    • Client Death Detection
    • Communication Reliability
    • Auto Start Cache on Boot
    • Nagle's Algorithm
    • Dual Socket
    • Configuration Files
      • Client Side Configurations
        • Client Config
        • EF Caching Config
      • Server Side Configurations
        • Cache Config
        • Bridge Config
        • Security Config
        • TLS Config
        • Monitoring Config
        • Emails Template
  • Cache Server Settings
    • Server Connectivity
    • Bind to Multiple NICs
    • Server Ports
    • Memory
    • Custom Dependency
    • Request Inquiry
    • Windows Events
    • Message Events
    • Expiration & Eviction
    • SQL Server
    • Logging
    • Monitoring
    • Persistence Data Loading Retries
    • Miscellaneous Configurations
  • Bridge Server Settings
  • Cache Client Settings
  • Client Cache Settings
  • Configure Security
    • Configure Authentication and Authorization
    • Configure Encryption for Cache
    • Configure TLS Encryption
    • Configure HTTPS for NCache Management Center
  • Configure Bridge for WAN Replication
    • Create Bridge
    • Add Clustered Caches to Bridge
    • Configure Bridge Settings
    • Change Cache Synchronization Modes
    • Bridge Management
    • Synchronize Caches in Bridge
    • Leave Bridge
    • Remove Cache from Bridge
    • Configure Conflict Resolver
  • Setup Database for Cache Synchronization
    • Setup SQL Server Environment
    • Setup Oracle Database Environment
    • Setup OleDb Environment
    • Setup SQL Server for CLR Procedures
  • Simulate NCache Usage
  • Monitor Caches
    • Counters
      • Distributed Cache Counters
      • Distributed Cache with Persistence Counters
      • Pub/Sub Messaging Cache Counters
      • Cache Client Counters
      • Bridge Counters
    • Monitor NCache Using the NCache Management Center
      • Using Monitoring Dashboards
        • Configure Monitor Settings
        • Configure Event Logging
        • Configure API Logging
        • Built-in Dashboard
        • Custom Dashboard
        • Cluster Connectivity
        • NCache Email Alerts
      • Using Tabular Statistics
        • Configure Counters to Display Caching Statistics
        • Configure Counters to Display Pub/Sub Statistics
        • Configure Counters to Display Bridge Statistics
        • Browse Cache Statistics
        • Monitor Bridge
    • Monitor NCache Using Command Line Tools
      • Cache Server Statistics Using Command Line Tools
      • Cache Client Statistics Using Command Line Tools
    • Monitor NCache Using Windows PerfMon Tool
      • Cache Server Counters Using PerfMon
      • Cache Client Counters Using PerfMon
      • Bridge Counters Using PerfMon Tool
    • Monitor NCache Using Prometheus
    • Monitor NCache Using Grafana
    • Monitor NCache Using SNMP Counters
    • Monitor NCache Using JMX Counters
    • Memory Dumps
    • Logging
      • NCache Log Viewer
      • Performance Counters Logging
      • Windows Event Logging
      • Cache Health Alerts
      • Email Notifications on NCache Events
      • Cache Server Logging
      • Client Side API Logging
      • Cache Event IDs
      • Feature Usage Logging
    • Troubleshooting NCache Monitoring
      • Computer Name Not Found
      • Diskperf Not Installed
      • No READ Access to Perflib Subkeys
      • Unable to Connect to Remote Server
    • IPV6 Support

Distributed Cache Health Alerts

You can monitor multiple resources used by NCache. With the help of the Cache Health Alerts mechanism, you are notified of a higher resource usage. The minimum and maximum threshold for resource usage is defined by you. You are notified by an event logged in the cache log file and Event Viewer whenever any threshold is met, i.e., if the monitored value is higher than or equal to a maximum threshold value or it is lower than or equal to a minimum threshold value.

Note

This feature is only provided for OutProc caches.

Configure Distributed Cache Health Alerts

The resources are provided in an alerts.xml file placed at %NCHOME%\config (Windows) or /opt/ncache/config (Linux). You can enable or disable the Cache Health Alerts through the cache-health-alerts tag in the configuration file. It is disabled by default. Moreover, as mentioned, logging is provided in both event and cache logs. So the logging interval for both cache and event logs can be configured using the following tag.

Note

Both the event logging interval and cache logging interval have the value in minutes.

<cache-health-alerts enable ="true" event-logging-interval ="60" cache-logging-interval ="10">

In case the minimum or maximum threshold is met, events are logged in the Event Viewer as shown below:

Cache Health Alerts Minimum

Cache Health Alerts Minimum

Similarly, the events are logged in the cache logs as shown below:

Cache Health Alerts Minimum

Resources

Given below is the list of all resources being monitored in the xml file. The values of their minimum and maximum threshold are configurable by the user within a particular range. These values are also described below.

  • Memory: The percentage value of memory consumed by a cache host process. The percentage is calculated with respect to cache size. In the case of Partition-Replica, the size of the replica is also included in the percentage calculation. The minimum and maximum threshold values that can be set for this resource are 0 and 100 respectively.

  • Network: The percentage value of bandwidth consumed by a cache host process. The minimum and maximum threshold values that can be set for this resource are 0 and 100 respectively.

  • CPU: The percentage value of the processor consumption by the cache host process. The minimum and maximum threshold values that can be set for this resource are 0 and 100 respectively.

  • Request-per-second: The number of requests (cache commands, e.g., add, remove, fetch, etc.) being the cache server per second. The minimum threshold value that can be set is 1000. However, there is no maximum threshold value for this resource.

  • Bridge-queue: The number of items in the Bridge queue of NCache. There is no minimum threshold value for this resource. However, the maximum threshold value that can be set is 1000.

  • Client-connections: Number of connected clients to a cache during logging interval. There is no maximum or minimum threshold value for this parameter.

  • Mirror-queue: The number of items in the Mirror queue of a cache. In the case of Partition-Replica, the Replica Mirror queue will also be monitored. There is no minimum threshold value for this resource. However, the maximum threshold value that can be set is 1000.

  • Write-Behind queue: The number of operations in the Write-Behind queue. There is no minimum threshold value for this resource. However, the maximum threshold value that can be set is 1000.

  • Average-cache-operation: Average time, in microseconds, taken to complete one cache operation. There is no minimum threshold value for this resource. However, the maximum threshold value that can be set is 1000.

A single resource has the following properties:

Properties Description Unit
-resource name Name of the resource.
-min-threshold If the resource usage value is less than or equal to the value provided, logging will start. - Percentage: memory, Network, CPU.
- Number: Rest of the counters.
-max-threshold If the resource usage value is equal to or greater than the value provided, logging will start. - Percentage: memory, Network, CPU.
- Number: Rest of the counters.
-duration Logging interval in seconds in which a resource value will be monitored. The minimum value for the duration is 5 seconds and the maximum value is 15 seconds. Seconds.
Note

For any counter with threshold values ranging between 0 to 100, if both (minimum and maximum) threshold values are set to 0, the value of the maximum threshold will be automatically changed to 50. Otherwise, if the value provided for the maximum threshold is lesser than thes minimum value provided, the maximum threshold will be calculated according to the given formula:
Maximum Threshold = Minimum Threshold / 2

See Also

NCache Log Viewer
Performance Counters Logging
Email Notifications on NCache Events

In This Article
  • Configure Distributed Cache Health Alerts
  • Resources
  • See Also

Contact Us

PHONE

+1 (214) 764-6933   (US)

+44 20 7993 8327   (UK)

 
EMAIL

sales@alachisoft.com

support@alachisoft.com

NCache
  • NCache Enterprise
  • NCache Professional
  • 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 - 2025. All rights reserved. NCache is a registered trademark of Diyatech Corp.
Back to top