mitodl / ol-infrastructure

Infrastructure automation code for use by MIT Open Learning
BSD 3-Clause "New" or "Revised" License
45 stars 4 forks source link

Cleanup odl-operations-backups s3 bucket #1944

Closed Ardiea closed 9 months ago

Ardiea commented 10 months ago

Description/Context

mike So I was looking at vantage this morning re: Carey’s question for us in the checkin and I found an s3 bucket odl-operations-backups which I think needs to go / get cleaned up substantially. 54TB in 600,000 objects, unchanged in 15 months.

Plan/Design

This bucket mostly contains old backups of various applications / databases / datastores that are so old they are no longer relevant or useful. Most of what is found in this bucket can probably be removed but use your discretion.

Ardiea commented 9 months ago

Proposed to delete:

This bucket contains nearly 600,000 objects in 52.68TB of data costing approx $1150.0 / m or approx 2.25% of our monthly AWS spend.

blarghmatey commented 9 months ago

This all looks good. Anything that looks like tracking logs we will want to keep, but the DB backups and the repos/prod_repos can get purged.

Ardiea commented 9 months ago

Verified storage usage is down to ~3 GB. Setup a manual intelligent archiving life cycle rule that Vantage suggested that will eventually cut costs on the remaining items in this bucket by a further 90% down to just $3-4/month.