From 50f056d116826d1a03b77adc6aaf5a9743c3dd45 Mon Sep 17 00:00:00 2001 From: Ilya Maximets Date: Mon, 4 Mar 2024 21:48:36 +0100 Subject: [PATCH] do.sh: Fix bloating of the resource usage report for central nodes. In case of a large number of availability zones the size of the resource usage report becomes unmanageable and browsers are not even able to open them. For example, the size of the report on a 120 node cluster-density test is 166 MB. Fix that the same way we do for workers - gather statistics only from the first 3 zones. For the future we'll need to have aggregated stats in addition to these truncated ones, so we don't overlook potential issues and can compare cluster-wide resource usage with different number of zones. Fixes: 40716b0bef06 ("ovn-tester: add the capability to deploy central components on multiple hv for ovn-ic") Signed-off-by: Ilya Maximets --- do.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/do.sh b/do.sh index 975bbc88..ef2845ab 100755 --- a/do.sh +++ b/do.sh @@ -401,8 +401,10 @@ function mine_data() { grep died ${logs} | sed 's/.*\/\(ovn-.*\)/\1/' > mined-data/crashes [ -s mined-data/crashes ] || rm -f mined-data/crashes + # Collecting stats for the tester and central components from the first + # 3 availability zones to avoid bloating the report. resource_usage_logs=$(find ${out_dir}/logs -name process-stats.json \ - | grep -v ovn-scale) + | grep -E 'ovn-tester|ovn-central-az[0-2]-') python3 ${topdir}/utils/process-stats.py \ resource-usage-report-central.html ${resource_usage_logs}