Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
Loading...
Searching...
No Matches
kcenon::thread::diagnostics::health_thresholds Struct Reference

Configurable thresholds for health status determination. More...

#include <health_status.h>

Collaboration diagram for kcenon::thread::diagnostics::health_thresholds:
Collaboration graph

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.
 

Detailed Description

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.

Member Data Documentation

◆ degraded_latency_ms

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.

56{500.0};

◆ max_healthy_latency_ms

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.

51{100.0};

◆ min_idle_workers

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.

78{0};

◆ min_success_rate

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.

41{0.95};

◆ queue_saturation_critical

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.

66{0.95};

◆ queue_saturation_warning

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.

61{0.8};

◆ unhealthy_success_rate

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.

46{0.8};

◆ worker_utilization_warning

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.

71{0.9};

The documentation for this struct was generated from the following file: