]> git.lizzy.rs Git - rust.git/commitdiff
Switch CI bucket to intelligent tiering
authorMark Rousskov <mark.simulacrum@gmail.com>
Mon, 9 May 2022 00:21:25 +0000 (20:21 -0400)
committerMark Rousskov <mark.simulacrum@gmail.com>
Mon, 9 May 2022 00:25:33 +0000 (20:25 -0400)
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).

src/ci/scripts/upload-artifacts.sh

index 312ec9d805012c7433fc54b7643bf2cb9926a6d2..cea9b770f2a20a8b4e66b53c5256ff11eeddf026 100755 (executable)
@@ -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}"