about summary refs log tree commit diff
path: root/src/ci/scripts
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2022-05-08 20:21:25 -0400
committerMark Rousskov <mark.simulacrum@gmail.com>2022-05-08 20:25:33 -0400
commit10a5f28ff4580b5bb143e744c62340886e67682a (patch)
tree1bca2ec50cd21ccf113c44bb94ae7fb8e7c2bfae /src/ci/scripts
parent68461648bf20a230898404d2231d386fbcc09b73 (diff)
downloadrust-10a5f28ff4580b5bb143e744c62340886e67682a.tar.gz
rust-10a5f28ff4580b5bb143e744c62340886e67682a.zip
Switch CI bucket to intelligent tiering
We currently upload approximately 166 GB/day into this bucket (estimate based on
duration of storage and total current size). My estimate is that this change
should decrease our costs (which are currently in credits) and is in the worst
case (if all objects are brought into hot storage due to unanticipated frequent
access) only going to add an additional ~$4 to the monthly bill. If access is
rare (as expected) to most objects then we expect to save approximately
~$350/month (after this change takes full effect in ~168 days).
Diffstat (limited to 'src/ci/scripts')
-rwxr-xr-xsrc/ci/scripts/upload-artifacts.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ci/scripts/upload-artifacts.sh b/src/ci/scripts/upload-artifacts.sh
index 312ec9d8050..cea9b770f2a 100755
--- a/src/ci/scripts/upload-artifacts.sh
+++ b/src/ci/scripts/upload-artifacts.sh
@@ -38,4 +38,5 @@ if [[ "${DEPLOY_ALT-0}" -eq "1" ]]; then
 fi
 deploy_url="s3://${DEPLOY_BUCKET}/${deploy_dir}/$(ciCommit)"
 
-retry aws s3 cp --no-progress --recursive --acl public-read "${upload_dir}" "${deploy_url}"
+retry aws s3 cp --storage-class INTELLIGENT_TIERING \
+    --no-progress --recursive --acl public-read "${upload_dir}" "${deploy_url}"