Skip to content

Commit c6163b7

Browse files
committed
feat: optimize azcopy perf in volume cloning scenario
1 parent 3b6cccb commit c6163b7

File tree

4 files changed

+13
-1
lines changed

4 files changed

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

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

+6
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,12 @@ spec:
157157
- name: AZURE_ENVIRONMENT_FILEPATH
158158
value: /etc/kubernetes/azurestackcloud.json
159159
{{- end }}
160+
- name: AZCOPY_CONCURRENCY_VALUE
161+
value: "10"
162+
- name: AZCOPY_CONCURRENT_FILES
163+
value: "20"
164+
- name: AZCOPY_BUFFER_GB
165+
value: "1"
160166
imagePullPolicy: {{ .Values.image.blob.pullPolicy }}
161167
volumeMounts:
162168
- mountPath: /csi

deploy/csi-blob-controller.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,12 @@ spec:
113113
optional: true
114114
- name: CSI_ENDPOINT
115115
value: unix:///csi/csi.sock
116+
- name: AZCOPY_CONCURRENCY_VALUE
117+
value: "10"
118+
- name: AZCOPY_CONCURRENT_FILES
119+
value: "20"
120+
- name: AZCOPY_BUFFER_GB
121+
value: "1"
116122
volumeMounts:
117123
- mountPath: /csi
118124
name: socket-dir

pkg/blob/blob.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ var (
158158

159159
// 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,
160160
// set --s2s-preserve-access-tier=false to avoid BlobAccessTierNotSupportedForAccountType error in azcopy
161-
azcopyCloneVolumeOptions = []string{"--recursive", "--check-length=false", "--s2s-preserve-access-tier=false"}
161+
azcopyCloneVolumeOptions = []string{"--recursive", "--check-length=false", "--s2s-preserve-access-tier=false", "--log-level=ERROR"}
162162
)
163163

164164
// DriverOptions defines driver parameters specified in driver deployment

0 commit comments

Comments
 (0)