Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update azure multipart policy #5553

Merged
merged 1 commit into from
Nov 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,15 @@ impl AzureBlobStorage {
container_client,
uri,
prefix: PathBuf::new(),
multipart_policy: MultiPartPolicy::default(),
multipart_policy: MultiPartPolicy {
// Azure max part size is 100MB
// https://azure.microsoft.com/en-us/blog/general-availability-larger-block-blobs-in-azure-storage/
target_part_num_bytes: 100_000_000,
multipart_threshold_num_bytes: 100_000_000,
max_num_parts: 50_000, // Azure allows up to 50,000 blocks
max_object_num_bytes: 4_770_000_000_000u64, // Azure allows up to 4.77TB objects
max_concurrent_uploads: 100,
},
retry_params: RetryParams::aggressive(),
}
}
Expand Down
Loading