Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exponential backoff throttle for scan operations #4

Merged
merged 5 commits into from
Jul 18, 2018
Merged

Conversation

jadeallenx
Copy link
Owner

Scans can take up a tremendous amount of read units.

This commit implements a simple exponential backoff/retry pattern for the scan operations when it encounters the dreaded "ProvisionedThroughputExceededException" instead of throwing up its hands and passing the mess back to the caller.

Scans can take up a tremendous amount of read units.

This commit implements a simple exponential backoff/retry
pattern for the scan operations when it encounters the
dreaded "ProvisionedThroughputExceededException"
src/darcy.erl Outdated

-record(error_delay, {
delay = 0 :: non_neg_integer(),
success = 0 :: non_neg_integer()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this isn't being used.

Copy link

@tsantero tsantero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@jadeallenx jadeallenx merged commit ae88709 into master Jul 18, 2018
@jadeallenx jadeallenx deleted the scan_throttle branch July 18, 2018 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants