Mininal test for S3 downlaod benchmarking
In the project root type:
./gradlew run --args="s3://nextflow-ci/hello.txt $PWD/hello.txt"
Replace source and target file with your the ones of your choice.
Use AWS_DEFAULT_REGION env variable to set the AWS region to use, default eu-west-1.
Use the following command to pack:
./gradlew shadowJar
Resulting JAR will be located at:
./build/libs/aws-s3-download-all.jar
Run it using
java -jar ./build/libs/aws-s3-download-all.jar <SOURCE S3> <LOCAL PATH>
AWS_SDK_VERSION=1 AWS_MAX_CONNECTIONS=10 AWS_LOG_LEVEL=DEBUG AWS_DEFAULT_REGION=us-east-1 java -jar ./build/libs/aws-s3-download-all.jar \
s3://sra-pub-src-2/ERR1305737/m151221_184918_00127_c100958412550000001823217206251660_s1_p0.1.bax.h5.1 \
sample.bax
AWS_SDK_VERSION=2 AWS_MAX_CONCURRENCY=10 AWS_LOG_LEVEL=DEBUG AWS_DEFAULT_REGION=us-east-1 java -jar ./build/libs/aws-s3-download-all.jar \
s3://sra-pub-src-2/ERR1305737/m151221_184918_00127_c100958412550000001823217206251660_s1_p0.1.bax.h5.1 \
sample.bax
AWS_DEFAULT_REGION=us-east-1 java -jar ./build/libs/aws-s3-download-all.jar \
s3://sra-pub-src-2/ERR1305737/m151221_184918_00127_c100958412550000001823217206251660_s1_p0.1.bax.h5.1 \
sample.bax
AWS_DEFAULT_REGION=us-east-1 \
java -XX:+FlightRecorder -XX:StartFlightRecording=defaultrecording=true,disk=true,dumponexit=true \
-jar ./build/libs/aws-s3-download-all.jar \
s3://sra-pub-src-2/ERR1305737/m151221_184918_00127_c100958412550000001823217206251660_s1_p0.1.bax.h5.1 \
sample.bax
JVM_ARGS='-XX:StartFlightRecording=disk=true,dumponexit=true'
NXF_S3_DOWNLOAD_PARALLEL=true
./launch.sh -log .nextflow.log
fs cp
s3://sra-pub-src-2/ERR1305737/m151221_184918_00127_c100958412550000001823217206251660_s1_p0.1.bax.h5.1
sample.bax