github.com/filecoin-project/bacalhau@v0.3.23-0.20230228154132-45c989550ace/benchmark/single_explode.sh (about)

     1  #!/bin/bash
     2  set -euo pipefail
     3  
     4  export INTERATION_ID="$1"
     5  
     6  # select the port of the next requester node
     7  export API_PORT=$((${API_PORT:-"20000"}  + INTERATION_ID % REQUESTER_NODES)) 
     8  
     9  sudo tee "./results/parameters-${RUN_ID}.json" >/dev/null <<EOI
    10  {
    11  "TOTAL_JOBS": ${TOTAL_JOBS},
    12  "BATCH_SIZE": ${BATCH_SIZE},
    13  "CONCURRENCY": ${CONCURRENCY},
    14  "REQUESTER_NODES": ${REQUESTER_NODES},
    15  }
    16  EOI
    17  
    18  hyperfine \
    19    --ignore-failure \
    20    --export-json="results/run-${RUN_ID}-${INTERATION_ID}.json" \
    21    --runs "${BATCH_SIZE}" \
    22    "timeout 30s bash submit.sh"