File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ COPY --chmod=755 common/ /
1515
1616EXPOSE 22
1717
18- ENV S3FS_PARALLEL_COUNT=5
18+ ENV S3FS_PARALLEL_COUNT=10
1919ENV S3FS_MULTIPART_SIZE=128
2020
2121HEALTHCHECK \
Original file line number Diff line number Diff line change @@ -173,7 +173,14 @@ function setupS3FS() {
173173 S3FS_ARGS=" ${S3FS_ARGS} -o nocopyapi"
174174 fi
175175
176- S3FS_PARALLEL_COUNT=${S3FS_PARALLEL_COUNT:- 5}
176+ # Setup cache directory
177+ S3FS_CACHE_DIR=${S3FS_CACHE_DIR:- " /tmp/s3fs_cache" }
178+ mkdir -p " $S3FS_CACHE_DIR "
179+ chmod 777 " $S3FS_CACHE_DIR "
180+ S3FS_ARGS=" ${S3FS_ARGS} -o use_cache=${S3FS_CACHE_DIR} "
181+
182+ # Setup S3FS_PARALLEL_COUNT and S3FS_MULTIPART_SIZE
183+ S3FS_PARALLEL_COUNT=${S3FS_PARALLEL_COUNT:- 10}
177184 S3FS_MULTIPART_SIZE=${S3FS_MULTIPART_SIZE:- 128}
178185
179186 S3FS_PARALLEL_COUNT=$(( $S3FS_PARALLEL_COUNT ))
@@ -182,6 +189,10 @@ function setupS3FS() {
182189 S3FS_ARGS=" ${S3FS_ARGS} -o parallel_count=${S3FS_PARALLEL_COUNT} "
183190 S3FS_ARGS=" ${S3FS_ARGS} -o multipart_size=${S3FS_MULTIPART_SIZE} "
184191
192+ # Enable big_writes support
193+ S3FS_ARGS=" ${S3FS_ARGS} -o big_writes"
194+ S3FS_ARGS=" ${S3FS_ARGS} -o kernel_cache"
195+
185196 echo " Start with s3fs ${DEBUG_OPTS} ${S3FS_ARGS} -o passwd_file=${S3FS_AUTHFILE} -o url=${AWS_ENDPOINT} -o endpoint=${AWS_DEFAULT_REGION} "
186197
187198 # Mount and verify that something is present. davfs2 always creates a lost+found
You can’t perform that action at this time.
0 commit comments