Skip to content

Commit

Permalink
Reorder sos gathering to speed things up
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Akrog committed Nov 24, 2023
1 parent d8a4bfb commit e7f9f82
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions collection-scripts/gather_run
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
DIR_NAME=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
source "${DIR_NAME}/common.sh"

# get SOS Reports first, as they are the slowest to run and will benefit most
# of the parallel execution
source "${DIR_NAME}/gather_sos"

# get nodes information
source "${DIR_NAME}/gather_nodes"

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

# get SOS Reports
source "${DIR_NAME}/gather_sos"

# Wait for background tasks to complete
wait_bg

0 comments on commit e7f9f82

Please sign in to comment.