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

질문됨 3년 전183회 조회
2개 답변
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.
답변함 3년 전
0

Thank you! This makes sense.

Bryan

답변함 3년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠