Skip to content

Commit abba37f

Browse files
authored
Merge pull request #61 from Mark-Simulacrum/parallelize-s3
Parallelize S3 upload/download more
2 parents 94f2965 + 440a484 commit abba37f

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

local/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,9 @@ ENV PATH=/root/.cargo/bin:$PATH
2929
COPY --from=mc /usr/bin/mc /usr/local/bin/mc
3030
RUN chmod 0755 /usr/local/bin/mc
3131

32+
# The default is 20 but slightly bumping it here. Mostly to test that this
33+
# command works. In production we set a much higher value (150).
34+
RUN aws configure set default.s3.max_concurrent_requests 25
35+
3236
ENTRYPOINT ["/src/local/setup.sh"]
3337
CMD ["/src/local/idle.sh"]

prod/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ RUN curl https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustu
5656
/root/.cargo/bin/rustup toolchain remove stable
5757
ENV PATH=/root/.cargo/bin:$PATH
5858

59+
# Roughly 2x number of CPU cores we have in production.
60+
RUN aws configure set default.s3.max_concurrent_requests 150
61+
5962
COPY --from=build /tmp/source/target/release/promote-release /usr/local/bin/
6063
COPY prod/load-gpg-keys.sh /usr/local/bin/load-gpg-keys
6164

0 commit comments

Comments
 (0)