Skip to content

Commit f34ccaa

Browse files
authored
Some perf flags exposed via env vars: (#590)
* Disabled http2 due to http2 streaming in net/http2 performance issues golang/go#37373 * RCLONE_S3_UPLOAD_CONCURRENCY, RCLONE_S3_CHUNK_SIZE to improve parallelism and download efficiency Signed-off-by: mzardab <[email protected]>
1 parent bfc4891 commit f34ccaa

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

resources/operations/rclone-bucket-replicate/job-template.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ objects:
7474
- ${SOURCE_ENDPOINT}:${SOURCE_BUCKET}
7575
- ${TARGET_ENDPOINT}:${TARGET_BUCKET}
7676
- '--rc'
77-
- '-v'
7877
- '--rc-enable-metrics'
7978
- '--rc-addr=:10902'
79+
- '--s3-disable-http2' # Needed due to https://github.com/golang/go/issues/37373
8080
restartPolicy: Never
8181

resources/operations/rclone-bucket-replicate/rclone-config-template.yaml

+9-1
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,15 @@ parameters:
1616
- name: RCLONE_STATS_INTERVAL
1717
value: '30s'
1818
- name: RCLONE_LOG_LEVEL
19-
value: '1'
19+
value: '0'
2020
- name: RCLONE_PARALLEL_TRANSFERS
2121
value: '4'
2222
- name: RCLONE_PARALLEL_FILE_CHECKERS
2323
value: '8'
24+
- name: RCLONE_S3_UPLOAD_CONCURRENCY
25+
value: '8'
26+
- name: RCLONE_S3_CHUNK_SIZE
27+
value: '64M'
2428

2529
objects:
2630
- apiVersion: v1
@@ -42,3 +46,7 @@ objects:
4246
# Checkers do the equality checking of files during a sync
4347
RCLONE_CHECKERS: ${RCLONE_PARALLEL_FILE_CHECKERS}
4448

49+
# AWS Client Specific Parameters
50+
RCLONE_S3_UPLOAD_CONCURRENCY: ${RCLONE_S3_UPLOAD_CONCURRENCY}
51+
RCLONE_S3_CHUNK_SIZE: ${RCLONE_S3_CHUNK_SIZE}
52+

0 commit comments

Comments
 (0)