m-lab / etl

M-Lab ingestion pipeline
Apache License 2.0
22 stars 7 forks source link

Add script to delete extra appengine services #1042

Closed stephen-soltesz closed 2 years ago

stephen-soltesz commented 2 years ago

AppEngine has a hard limit of 210 service versions across a project. This change adds a small script that deletes all service versions after the first 9 that are non-serving. The number of older versions to preserve is arbitrary; more than 1 to allow rollbacks is the main intention. 9 is conservative number. This change was inspired by an alert in staging about there being too many service versions.

Limitations / caveats:


This change is Reviewable

coveralls commented 2 years ago

Pull Request Test Coverage Report for Build 7056


Totals Coverage Status
Change from base Build 7050: 0.0%
Covered Lines: 3844
Relevant Lines: 5986

💛 - Coveralls
stephen-soltesz commented 2 years ago

It works!