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_up_config Struct Reference

Configuration for scale-up triggers. More...

#include <autoscaling_policy.h>

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

Public Attributes

double queue_depth_threshold = 100.0
 Jobs per worker threshold (scale up when exceeded)
 
double utilization_threshold = 0.8
 Worker utilization threshold (0.0 - 1.0, scale up when exceeded)
 
double latency_threshold_ms = 50.0
 P95 latency threshold in milliseconds (scale up when exceeded)
 
std::size_t pending_jobs_threshold = 1000
 Absolute pending jobs threshold (scale up when exceeded)
 

Detailed Description

Configuration for scale-up triggers.

Scale-up is triggered when ANY of these thresholds are exceeded.

Definition at line 68 of file autoscaling_policy.h.

Member Data Documentation

◆ latency_threshold_ms

double kcenon::thread::autoscaling_policy::scale_up_config::latency_threshold_ms = 50.0

P95 latency threshold in milliseconds (scale up when exceeded)

Definition at line 77 of file autoscaling_policy.h.

◆ pending_jobs_threshold

std::size_t kcenon::thread::autoscaling_policy::scale_up_config::pending_jobs_threshold = 1000

Absolute pending jobs threshold (scale up when exceeded)

Definition at line 80 of file autoscaling_policy.h.

◆ queue_depth_threshold

double kcenon::thread::autoscaling_policy::scale_up_config::queue_depth_threshold = 100.0

Jobs per worker threshold (scale up when exceeded)

Definition at line 71 of file autoscaling_policy.h.

◆ utilization_threshold

double kcenon::thread::autoscaling_policy::scale_up_config::utilization_threshold = 0.8

Worker utilization threshold (0.0 - 1.0, scale up when exceeded)

Definition at line 74 of file autoscaling_policy.h.

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


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