awslabs / amazon-ebs-autoscale

Don't run out of disk space on your EC2 instance when generating or working with large files. Automatically add EBS volumes to a filesystem mount point in response to disk utilization.
MIT License
113 stars 60 forks source link

Add random jitter to sleep #32

Closed markjschreiber closed 3 years ago

markjschreiber commented 3 years ago

Description of changes: Add a random jitter of between 0 and 2 seconds to sleep. Large clusters of EC2 instances can become synchronous in attempts to make EC2 API calls exhausting the token pool. The jitter can spread the API calls.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.