Correct iowait thresolds

This commit is contained in:
nicolargo committed 2026-08-01 10:30:49 +02:00
1 parent b6737fb5c4
commit b155fbc50f
2 files changed
+3 -14

No files matched your search

+2 -3
View File
@@ -160,8 +160,7 @@ disable=False
# See https://scoutapm.com/blog/slow_server_flow_chart
#
# I/O wait percentage should be lower than 1/# (# = Logical CPU cores)
# Leave commented to just use the default config:
# Careful=1/#*100-20% / Warning=1/#*100-10% / Critical=1/#*100
# Leave commented to just use the default config: 50/70/90
#iowait_careful=30
#iowait_warning=40
#iowait_critical=50
@@ -172,7 +171,7 @@ total_warning=75
total_critical=85
total_log=True
#
# Default values if not defined: 50/70/90 (except for iowait)
# Default values if not defined: 50/70/90
user_careful=50
user_warning=70
user_critical=90
+1 -11
View File
@@ -238,17 +238,7 @@ class Config:
self.set_default_cwc('cpu', 'user')
self.set_default_cwc('cpu', 'system')
self.set_default_cwc('cpu', 'steal')
# By default I/O wait should be lower than 1/number of CPU cores
iowait_bottleneck = (1.0 / multiprocessing.cpu_count()) * 100.0
self.set_default_cwc(
'cpu',
'iowait',
[
str(iowait_bottleneck - (iowait_bottleneck * 0.20)),
str(iowait_bottleneck - (iowait_bottleneck * 0.10)),
str(iowait_bottleneck),
],
)
self.set_default_cwc('cpu', 'iowait')
# Context switches bottleneck identification #1212
ctx_switches_bottleneck = (500000 * 0.10) * multiprocessing.cpu_count()
self.set_default_cwc(