github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/bench/tools/aisloader/test/ci-test.sh (about) 1 #!/bin/bash 2 3 bucket_name="" 4 duration="2m" 5 etl=false 6 7 for i in "$@"; do 8 case $i in 9 -b=*|--bucket=*|bucket=*) 10 bucket_name="${i#*=}" 11 shift 12 ;; 13 14 -d=*|--duration=*|duration=*) 15 duration="${i#*=}" 16 shift 17 ;; 18 19 -etl|--etl) 20 etl=true 21 shift 22 ;; 23 *) 24 usage 25 ;; 26 esac 27 done 28 29 if [[ -z ${bucket_name} ]]; then 30 bucket_name=$(cat /dev/urandom | LC_CTYPE=C tr -dc 'a-zA-Z0-9' | fold -w 12 | head -n 1) 31 fi 32 33 if [ "$etl" = true ]; then 34 aisloader -bucket="${bucket_name}" -duration="$duration" -pctput=100 -provider=ais -maxsize=10MiB -minsize=1MiB -totalputsize=5GiB -cleanup=false -numworkers=8 -readertype=tar 35 aisloader -bucket="${bucket_name}" -duration="$duration" -pctput=10 -provider=ais -maxsize=10MiB -minsize=1MiB -totalputsize=5GiB -cleanup=true -numworkers=8 -readertype=tar -etl=tar2tf 36 else 37 aisloader -bucket="${bucket_name}" -duration="$duration" -pctput=100 -provider=ais -maxsize=10MiB -minsize=1MiB -totalputsize=10GiB -cleanup=false -numworkers=8 38 aisloader -bucket="${bucket_name}" -duration="$duration" -pctput=10 -provider=ais -maxsize=10MiB -minsize=1MiB -totalputsize=10GiB -cleanup=true -numworkers=8 39 fi