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

Backfill throttling #13855

Merged
merged 4 commits into from
Apr 11, 2024
Merged

Backfill throttling #13855

merged 4 commits into from
Apr 11, 2024

Conversation

kasey
Copy link
Contributor

@kasey kasey commented Apr 5, 2024

What type of PR is this?

Bug fix

What does this PR do? Why is it needed?

If backfill gets wedged (for instance what happened with the finalized index bug we fixed in the last release) it can retry the latest batch in a hot loop. I'm worried that if there is some backfill bug or network condition that causes a batch to continually fail, this could spam peers with requests and create a lot of log volume.

So this PR adds a delay of 1 second before retrying a failed batch. This is a blunt tool to quickly make the current situation a bit safer before we update backfill to share rate limiting functionality with init sync.

@kasey kasey requested a review from a team as a code owner April 5, 2024 21:16
@kasey kasey added this pull request to the merge queue Apr 11, 2024
Merged via the queue into develop with commit c0acb7d Apr 11, 2024
17 checks passed
@kasey kasey deleted the backfill-throttling branch April 11, 2024 15:48
nisdas pushed a commit that referenced this pull request Jul 4, 2024
* add a sleep between retries as a simple throttle

* unit test

* deepsource

---------

Co-authored-by: Kasey Kirkham <[email protected]>
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