Skip to content

Commit e7f9f82

Browse files
committed
Reorder sos gathering to speed things up
Do the gathering of the SOS reports at the beginning of the must-gather so it has a better parallelization with the rest of the tasks.
1 parent d8a4bfb commit e7f9f82

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

collection-scripts/gather_run

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
DIR_NAME=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
44
source "${DIR_NAME}/common.sh"
55

6+
# get SOS Reports first, as they are the slowest to run and will benefit most
7+
# of the parallel execution
8+
source "${DIR_NAME}/gather_sos"
9+
610
# get nodes information
711
source "${DIR_NAME}/gather_nodes"
812

@@ -50,8 +54,5 @@ source "${DIR_NAME}/gather_network"
5054
# get SVC status (inspect ctlplane)
5155
source "${DIR_NAME}/gather_services_status"
5256

53-
# get SOS Reports
54-
source "${DIR_NAME}/gather_sos"
55-
5657
# Wait for background tasks to complete
5758
wait_bg

0 commit comments

Comments
 (0)