Skip to content
STIRUP

TECHNOLOGY INTELLIGENCE

Understand what's next.

Cross-Cloud Node Problem Detection and Mitigation Strategy

A configuration-driven approach using node-problem-detector and node-problem-mitigator ensures consistent detection, response, and documentation of node issues across multiple cloud providers.

Share
AI-generated conceptual illustration accompanying: Cross-Cloud Node Problem Detection and Mitigation Strategy
AI-generated editorial illustration of the article topic; not a photograph, product screenshot or measured result.

Implementation of Detection and Mitigation Across Cloud Providers

The implementation of detection and mitigation across three cloud providers involved a focused strategy to ensure consistent behavior. The team opted to run their own node-problem-detector (NPD) configuration on all three clouds, enabling uniform monitoring and issue identification. A custom controller, known as the node-problem-mitigator (NPM), was developed to monitor the conditions reported by NPD. This controller applies pre-configured responses to each detected condition, ranging from simple observation to instance termination. This approach ensures that regardless of the cloud provider, the system can detect, react to, and document issues in a standardized manner. The decisions made were centered on maintaining reliability and consistency across environments without relying on cloud-specific tools or configurations.

Configuration-Driven Approach to Node Problem Detection and Mitigation

A configuration-driven approach to node problem detection and mitigation ensures consistency across clusters in multiple cloud environments. By standardizing checks through a shared catalog of configurations, teams can apply the same detection logic uniformly, simplifying management and reducing the risk of misconfiguration. For instance, a rule for detecting errors on an ext4 filesystem is defined as a configuration entry, ensuring that all nodes interpret and respond to such errors in the same way. However, log monitors can be problematic due to their stickiness—once a log pattern is matched, the resulting Node Condition remains active indefinitely, which may lead to prolonged alerts for transient issues. To address this, some checks are designed with thresholds, such as the NVMe timeout check, which only triggers when at least two devices time out within the same minute. This approach minimizes false positives by distinguishing between self-healing blips and potential host-side faults.

Mitigation Safety Gates and Risk Management

Mitigation Safety Gates and Risk Management are critical components in ensuring node reliability across multiple cloud environments. The node-problem-mitigator employs several safety gates to reduce the risk associated with mitigation actions. These include a kill switch, which is a config map value that halts any controller activity, and a dry-run/evaluation mode that allows administrators to preview potential mitigations without executing them. Additionally, exclusions based on workloads’ namespaces, node taints, annotations, and labels enable filtering and skipping of specific nodes. A global node mitigation cooldown period, such as a maximum of one node mitigation per 15 minutes per cluster, helps prevent over-mitigation and ensures stability. As noted, it is important to keep configurations granular, as some conditions carry higher risks than others.

Node Debug Collector and Challenges in Evidence Collection

The Node Debug Collector plays a critical role in diagnosing issues across distributed systems, particularly when dealing with multiple cloud environments. When a suspicious node is detected, the first step is to gather telemetry data such as logs, metrics, and system status. This process is essential for identifying the root cause of problems and enabling effective mitigation.

According to ClickHouse, the Node-problem-mitigator is open-source and welcomes contributions, which supports the ongoing development of tools like the Node Debug Collector. However, as noted in ClickHouse, the number of plugins available is extensive, requiring careful curation to ensure only relevant collectors are included for specific cluster environments. ClickHouse highlights the complexity of evidence collection when dealing with three different cloud providers, emphasizing that delivery and execution can be particularly challenging when nodes are already compromised.

Open-Source Contributions and Considerations for Termination Thresholds

Open-source contributions play a critical role in the development and maintenance of tools like the Node Problem Mitigator, which helps detect and respond to node failures in cloud environments. When a suspicious node is identified, collecting telemetry such as logs, metrics, and system status is essential for diagnosing the issue and taking corrective action. The Node Debug Collector facilitates this process by extracting evidence from the affected node.

Setting appropriate termination thresholds is influenced by several factors, including workload type (stateful vs. stateless), the maturity of the software running in the cluster (e.g., PDBs, SIGTERM discipline), and the developer culture within the organization. These considerations were taken into account when evaluating existing open-source solutions such as Medik8s node-healthcheck-operator and self-node-remediation.

Once mitigation steps are initiated, they can be adjusted based on new conditions, but the overall direction is toward more aggressive actions if needed. This approach ensures that node reliability is maintained across multiple cloud environments.

Sources and reporting notes

Based on published source material. No independent hands-on testing is claimed.

Read more