|
Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
|
Configurable thresholds for health status determination. More...
#include <health_status.h>

Public Attributes | |
| double | min_success_rate {0.95} |
| Minimum success rate for healthy status (0.0 to 1.0). | |
| double | unhealthy_success_rate {0.8} |
| Success rate below which pool is unhealthy (0.0 to 1.0). | |
| double | max_healthy_latency_ms {100.0} |
| Maximum average latency (ms) for healthy status. | |
| double | degraded_latency_ms {500.0} |
| Latency (ms) above which pool is considered degraded. | |
| double | queue_saturation_warning {0.8} |
| Queue saturation threshold for degraded status (0.0 to 1.0). | |
| double | queue_saturation_critical {0.95} |
| Queue saturation threshold for unhealthy status (0.0 to 1.0). | |
| double | worker_utilization_warning {0.9} |
| Worker utilization threshold for degraded status (0.0 to 1.0). | |
| std::size_t | min_idle_workers {0} |
| Minimum number of idle workers required for healthy status. | |
Configurable thresholds for health status determination.
Defines the thresholds used to determine if components are healthy, degraded, or unhealthy. These can be customized based on application requirements.
Definition at line 34 of file health_status.h.
| double kcenon::thread::diagnostics::health_thresholds::degraded_latency_ms {500.0} |
Latency (ms) above which pool is considered degraded.
Definition at line 56 of file health_status.h.
| double kcenon::thread::diagnostics::health_thresholds::max_healthy_latency_ms {100.0} |
Maximum average latency (ms) for healthy status.
Definition at line 51 of file health_status.h.
| std::size_t kcenon::thread::diagnostics::health_thresholds::min_idle_workers {0} |
Minimum number of idle workers required for healthy status.
Set to 0 to disable this check.
Definition at line 78 of file health_status.h.
| double kcenon::thread::diagnostics::health_thresholds::min_success_rate {0.95} |
Minimum success rate for healthy status (0.0 to 1.0).
Below this threshold, the pool is considered degraded.
Definition at line 41 of file health_status.h.
| double kcenon::thread::diagnostics::health_thresholds::queue_saturation_critical {0.95} |
Queue saturation threshold for unhealthy status (0.0 to 1.0).
Definition at line 66 of file health_status.h.
| double kcenon::thread::diagnostics::health_thresholds::queue_saturation_warning {0.8} |
Queue saturation threshold for degraded status (0.0 to 1.0).
Definition at line 61 of file health_status.h.
| double kcenon::thread::diagnostics::health_thresholds::unhealthy_success_rate {0.8} |
Success rate below which pool is unhealthy (0.0 to 1.0).
Definition at line 46 of file health_status.h.
| double kcenon::thread::diagnostics::health_thresholds::worker_utilization_warning {0.9} |
Worker utilization threshold for degraded status (0.0 to 1.0).
Definition at line 71 of file health_status.h.