Skip to content

Commit

Permalink
feat: add concurrency for s5cmd download (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
yetone authored Nov 29, 2024
1 parent b072c29 commit 9eeaf03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bento-image-snapshotter/fs/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ func (o *S3FileSystem) downloadLayerFromS3(ctx context.Context, bucketName, laye

startTime := time.Now()
var stderr bytes.Buffer
cmd := exec.CommandContext(ctx, "sh", "-c", fmt.Sprintf("s5cmd cat %s | pzstd -d | tar -xf -", s3Path)) // nolint:gosec
cmd := exec.CommandContext(ctx, "sh", "-c", fmt.Sprintf("s5cmd cat --concurrency=12 --part-size=400 %s | pzstd -d | tar -xf -", s3Path)) // nolint:gosec
cmd.Stderr = &stderr
cmd.Dir = tempName

Expand Down

0 comments on commit 9eeaf03

Please sign in to comment.