Skip to content

[release-1.25] feat: optimize azcopy perf in volume cloning scenario #1840

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

Merged
Merged
Show file tree
Hide file tree
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
Binary file modified charts/latest/blob-csi-driver-1.25.2.tgz
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,12 @@ spec:
- name: AZURE_ENVIRONMENT_FILEPATH
value: /etc/kubernetes/azurestackcloud.json
{{- end }}
- name: AZCOPY_CONCURRENCY_VALUE
value: "10"
- name: AZCOPY_CONCURRENT_FILES
value: "20"
- name: AZCOPY_BUFFER_GB
value: "1"
imagePullPolicy: {{ .Values.image.blob.pullPolicy }}
volumeMounts:
- mountPath: /csi
Expand Down
6 changes: 6 additions & 0 deletions deploy/csi-blob-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@ spec:
optional: true
- name: CSI_ENDPOINT
value: unix:///csi/csi.sock
- name: AZCOPY_CONCURRENCY_VALUE
value: "10"
- name: AZCOPY_CONCURRENT_FILES
value: "20"
- name: AZCOPY_BUFFER_GB
value: "1"
volumeMounts:
- mountPath: /csi
name: socket-dir
Expand Down
2 changes: 1 addition & 1 deletion pkg/blob/blob.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ var (

// azcopyCloneVolumeOptions used in volume cloning between different storage account and --check-length to false because volume data may be in changing state, copy volume is not same as current source volume,
// set --s2s-preserve-access-tier=false to avoid BlobAccessTierNotSupportedForAccountType error in azcopy
azcopyCloneVolumeOptions = []string{"--recursive", "--check-length=false", "--s2s-preserve-access-tier=false"}
azcopyCloneVolumeOptions = []string{"--recursive", "--check-length=false", "--s2s-preserve-access-tier=false", "--log-level=ERROR"}
)

// DriverOptions defines driver parameters specified in driver deployment
Expand Down
Loading