Merge pull request #8068 from GabyCT/topic/limitlatency

metrics: Add latency value limits for kata CI
This commit is contained in:
GabyCT
2023-09-27 13:28:41 -06:00
committed by GitHub
3 changed files with 32 additions and 6 deletions

View File

@@ -98,6 +98,19 @@ midval = 98.0
minpercent = 20.0
maxpercent = 20.0
[[metric]]
name = "latency"
type = "json"
description = "measure container latency"
# Min and Max values to set a 'range' that
# the median of the CSV Results data must fall
# within (inclusive)
checkvar = ".\"latency\".Results | .[] | .latency.Result"
checktype = "mean"
midval = 0.75
minpercent = 20.0
maxpercent = 20.0
[[metric]]
name = "network-iperf3"
type = "json"
@@ -147,5 +160,5 @@ description = "iperf"
checkvar = ".\"network-iperf3\".Results | .[] | .jitter.Result"
checktype = "mean"
midval = 0.044
minpercent = 40.0
maxpercent = 40.0
minpercent = 50.0
maxpercent = 50.0

View File

@@ -98,6 +98,19 @@ midval = 98.0
minpercent = 20.0
maxpercent = 20.0
[[metric]]
name = "latency"
type = "json"
description = "measure container latency"
# Min and Max values to set a 'range' that
# the median of the CSV Results data must fall
# within (inclusive)
checkvar = ".\"latency\".Results | .[] | .latency.Result"
checktype = "mean"
midval = 0.70
minpercent = 20.0
maxpercent = 20.0
[[metric]]
name = "network-iperf3"
type = "json"
@@ -147,5 +160,5 @@ description = "iperf"
checkvar = ".\"network-iperf3\".Results | .[] | .jitter.Result"
checktype = "mean"
midval = 0.041
minpercent = 40.0
maxpercent = 40.0
minpercent = 50.0
maxpercent = 50.0

View File

@@ -93,14 +93,14 @@ function run_test_iperf() {
info "Running Iperf test using ${KATA_HYPERVISOR} hypervisor"
bash tests/metrics/network/iperf3_kubernetes/k8s-network-metrics-iperf3.sh -a
check_metrics
}
function run_test_latency() {
info "Running Latency test using ${KATA_HYPERVISOR} hypervisor"
bash tests/metrics/network/latency_kubernetes/latency-network.sh
check_metrics
}
function main() {