Skip to content

fix(replays): Shorten storage policy retry cadence#68786

Merged
cmanallen merged 2 commits into
masterfrom
cmanallen/replays-lower-retry-delay
Apr 12, 2024
Merged

fix(replays): Shorten storage policy retry cadence#68786
cmanallen merged 2 commits into
masterfrom
cmanallen/replays-lower-retry-delay

Conversation

@cmanallen

Copy link
Copy Markdown
Member

Shortens the storage policy retry length from 17 seconds to 1.7 seconds. Currently we wait 250 milliseconds after the first failure. This is probably too long. A 10x decrease in the wait time is roughly the amount of time it takes to upload a file in the first place. Waiting one upload interval and checking the service provider again seems reasonable. We also don't want to block the process for 17 seconds. Let's block for ~1.7 and if it hasn't fixed it self do our normal crash and retry cycle.

The goal is to not allow random or intermittent failures to significantly lower throughput when we could immediately retry.

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 12, 2024
@cmanallen cmanallen enabled auto-merge (squash) April 12, 2024 14:41
@cmanallen cmanallen merged commit bca5c28 into master Apr 12, 2024
@cmanallen cmanallen deleted the cmanallen/replays-lower-retry-delay branch April 12, 2024 14:59
c298lee pushed a commit that referenced this pull request Apr 12, 2024
Shortens the storage policy retry length from 17 seconds to 1.7 seconds.
Currently we wait 250 milliseconds after the first failure. This is
probably too long. A 10x decrease in the wait time is roughly the amount
of time it takes to upload a file in the first place. Waiting one upload
interval and checking the service provider again seems reasonable. We
also don't want to block the process for 17 seconds. Let's block for
~1.7 and if it hasn't fixed it self do our normal crash and retry cycle.

The goal is to not allow random or intermittent failures to
significantly lower throughput when we could immediately retry.
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants