Skip to content

Commit 0144d9c

Browse files
authored
Merge pull request #1841 from andyzhangx/optimize-azcopy-perf-1.24
[release-1.24] feat: optimize azcopy perf in volume cloning scenario
2 parents 81642e1 + b4c158a commit 0144d9c

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed
59 Bytes
Binary file not shown.

charts/latest/blob-csi-driver/templates/csi-blob-controller.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,12 @@ spec:
182182
- name: AZURE_ENVIRONMENT_FILEPATH
183183
value: /etc/kubernetes/azurestackcloud.json
184184
{{- end }}
185+
- name: AZCOPY_CONCURRENCY_VALUE
186+
value: "10"
187+
- name: AZCOPY_CONCURRENT_FILES
188+
value: "20"
189+
- name: AZCOPY_BUFFER_GB
190+
value: "1"
185191
imagePullPolicy: {{ .Values.image.blob.pullPolicy }}
186192
volumeMounts:
187193
- mountPath: /csi

deploy/csi-blob-controller.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,12 @@ spec:
114114
optional: true
115115
- name: CSI_ENDPOINT
116116
value: unix:///csi/csi.sock
117+
- name: AZCOPY_CONCURRENCY_VALUE
118+
value: "10"
119+
- name: AZCOPY_CONCURRENT_FILES
120+
value: "20"
121+
- name: AZCOPY_BUFFER_GB
122+
value: "1"
117123
volumeMounts:
118124
- mountPath: /csi
119125
name: socket-dir

pkg/blob/blob.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ var (
165165

166166
// 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,
167167
// set --s2s-preserve-access-tier=false to avoid BlobAccessTierNotSupportedForAccountType error in azcopy
168-
azcopyCloneVolumeOptions = []string{"--recursive", "--check-length=false", "--s2s-preserve-access-tier=false"}
168+
azcopyCloneVolumeOptions = []string{"--recursive", "--check-length=false", "--s2s-preserve-access-tier=false", "--log-level=ERROR"}
169169
)
170170

171171
// DriverOptions defines driver parameters specified in driver deployment

0 commit comments

Comments
 (0)