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

client: fix overly aggressive project-wide file transfer backoff policy. #4575

Merged
merged 1 commit into from
Dec 8, 2021

Conversation

davidpanderson
Copy link
Contributor

Old: if we get more than 3 upload or download failures for a project,
do a backoff for each failure.

Problem: if we start a bunch of transfers (say the N output files of a job)
and they all fail, we back off for too long, e.g.:
try N uploads
back off 2^N minutes
try N uploads
back off 4^N minutes
...

New: on a failure, ignore it if we're already backed off.
So the behavior should be something like:
try N uploads
back off 1 minute
try N uploads
back off 2 minutes
...

Should fix #4572

Old: if we get more than 3 upload or download failures for a project,
do a backoff for each failure.

Problem: if we start a bunch of transfers (say the N output files of a job)
and they all fail, we back off for too long, e.g.:
try N uploads
back off 2^N minutes
try N uploads
back off 4^N minutes
...

New: on a failure, ignore it if we're already backed off.
So the behavior should be something like:
try N uploads
back off 1 minute
try N uploads
back off 2 minutes
...
@RichardHaselgrove
Copy link
Contributor

Should also fix #3778

@AenBleidd AenBleidd linked an issue Nov 9, 2021 that may be closed by this pull request
@AenBleidd
Copy link
Member

Code itself looks fine, but I haven't tested it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants