brennerm / aws-quota-checker

Keep an eye on your AWS quotas before you hit their limits
https://pypi.org/project/aws-quota-checker/
MIT License
84 stars 36 forks source link

Paginate ebs_snapshot_count check #32

Closed kedoodle closed 2 years ago

kedoodle commented 2 years ago

This PR fixes a memory usage issue whereby quota checks make a single boto3 call, even when supposedly paginating. Symptoms described in this comment on #31.

See memory usage spikes to ~800 MiB on 1.10.0 and is fairly stable at ~50 MiB on this branch. image

Before:

After:

brennerm commented 2 years ago

Thanks for the contribution, looking good! :+1:

brennerm commented 2 years ago

Change has been released in version 1.11.0.