Build Catalogue Limit

0

I am aware of the game build catalogue limits ("The build catalog can store the maximum of 1,000 builds or 100GB of storage.").

I am just wondering if someone can provide clarity on what happens after either of those limits are reached? Do old builds need to manually be removed, or is there some options in place to cycle out oldest as new builds come in.

Thanks,

Bryan

asked 3 years ago178 views
2 Answers
0

Hi @REDACTEDUSER

what happens after either of those limits are reached?

When those limits are reached, you will run into a ConflictException with an error message like Current limit of builds of 1000 have been reached. or Account is currently over limit. Current total size: 100.12GB. Allowed total size: 100.00GB.

Ideally, this should be LimitsExceededException, but the service is quite old and we cannot change it anymore to be backwards compatible.

Do old builds need to manually be removed, or is there some options in place to cycle out oldest as new builds come in.

Nope, GameLift does not offer such mechanism intentionally, because it's very risky to delete something on behalf of the customer (False positives could be costly).

It's straightforward to do this by yourself though. You can write a scheduled job (e.g. a cloudwatch scheduled event triggering a lambda function every N days) that does the following:

  1. Call ListBuild to get all of your build
  2. Iterate through the resulting Builds (you'll likely need to paginate multiple pages), get the Build's Version or CreationTime.
  3. Compare the value with your cutoff version or cutoff date, if too stale, call DeleteBuild to delete the build. The cutoff version/date could be set as lambda environment variable to enable easy editing.

NOTE:

  1. Deletion by CreationTime is not recommended, because some of your build could be old but might still be useful.
  2. DeleteBuild has a API rate limit of 4TPS burst and 1TPS sustained, so please add a rate limiter to ensure no more than 1 DeleteBuild is called per second, or you will get throttling exceptions.
  3. If needed, you could also setup monitors to alert you when you have more than N builds (e.g. 700, or 70% of your capacity), and manually drive an aggressive cleanup if needed.
answered 3 years ago
0

Thank you! This makes sense.

Bryan

answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions