summaryrefslogtreecommitdiff
path: root/qa/pconf/cpu/load_average
diff options
context:
space:
mode:
Diffstat (limited to 'qa/pconf/cpu/load_average')
-rw-r--r--qa/pconf/cpu/load_average29
1 files changed, 29 insertions, 0 deletions
diff --git a/qa/pconf/cpu/load_average b/qa/pconf/cpu/load_average
new file mode 100644
index 0000000..e5fa9bc
--- /dev/null
+++ b/qa/pconf/cpu/load_average
@@ -0,0 +1,29 @@
+#pmieconf-rules 1
+#
+
+rule cpu.load_average
+ default = "$rule$"
+ predicate =
+"some_host (
+ kernel.all.load $hosts$ #'1 minute'
+ > hinv.ncpu $hosts$ * $threshold$
+)"
+ enabled = yes
+ version = 1
+ help =
+"The current 1-minute load average is higher than threshold times the
+number of CPUs.
+The load average measures the number of processes that are running,
+runnable or soon to be runnable (i.e. in short term sleep).";
+
+string rule
+ default = "high 1-minute load average"
+ modify = no
+ display = no;
+
+double threshold
+ default = 1.5
+ help =
+"The threshold multiplier for load per CPU, typically in the range
+0.5 (very light load) to 4.0 (very heavy load ).";
+