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

Configuration for scale-down triggers. More...

#include <autoscaling_policy.h>

Collaboration diagram for kcenon::thread::autoscaling_policy::scale_down_config:
Collaboration graph

Public Attributes

double utilization_threshold = 0.3
 Worker utilization threshold (0.0 - 1.0, scale down when below)
 
double queue_depth_threshold = 10.0
 Jobs per worker threshold (scale down when below)
 
std::chrono::seconds idle_duration {60}
 Duration worker must be idle before removal.
 

Detailed Description

Configuration for scale-down triggers.

Scale-down is triggered when ALL of these conditions are met.

Definition at line 88 of file autoscaling_policy.h.

Member Data Documentation

◆ idle_duration

std::chrono::seconds kcenon::thread::autoscaling_policy::scale_down_config::idle_duration {60}

Duration worker must be idle before removal.

Definition at line 97 of file autoscaling_policy.h.

97{60};

◆ queue_depth_threshold

double kcenon::thread::autoscaling_policy::scale_down_config::queue_depth_threshold = 10.0

Jobs per worker threshold (scale down when below)

Definition at line 94 of file autoscaling_policy.h.

◆ utilization_threshold

double kcenon::thread::autoscaling_policy::scale_down_config::utilization_threshold = 0.3

Worker utilization threshold (0.0 - 1.0, scale down when below)

Definition at line 91 of file autoscaling_policy.h.

Referenced by kcenon::thread::autoscaling_policy::is_valid().


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