Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Archive games after 24h in GCS and restore automatically #172

Merged
merged 2 commits into from
Dec 23, 2024

Conversation

ekzhang
Copy link
Owner

@ekzhang ekzhang commented Dec 23, 2024

This reduces storage costs from $5/GB/month to about $0.02/GB/month (250x) with almost no downside. It also uses gzip which provides another 3x compression ratio, reducing cost again. So what was costing $150/month previously to store 10 million games, and required us to drop the database, now would only cost $0.20/month.

Need to test thoroughly in setwihfriends-dev before I can promote to production. Don't want to lose a bunch of data!

This reduces storage costs from $5/GB/month to about $0.02/GB/month (250x) with almost no downside. It also uses gzip which provides another 3x compression ratio, reducing cost again. So what was costing $150/month previously to store 10 million games, and required us to drop the database, now would only cost $0.20/month.

Need to test thoroughly in setwihfriends-dev before I can promote to production. Don't want to lose a bunch of data!
@ekzhang ekzhang merged commit a97f8cb into main Dec 23, 2024
4 checks passed
@ekzhang ekzhang deleted the ekzhang/archive-restore-gcs branch December 23, 2024 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant