PYTHON-5629 Increase max overload retries from 3 to 5 and initial delay from 50ms to 100ms #2599
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
One of the goals of new client backpressure overload retry behavior is to withstand temporary load spikes on the server. The operation burst workload (PERF-7190) shows that 3 retries is insufficient at reducing the error rate during brief overload periods. This can be attributed to the short effective retry time window of 3 retries and initial delay 100ms which is only 100ms + 200ms + 400ms = 700ms. With 5 retries the time window increases to 100ms + 200ms + 400ms + 800ms + 1600ms = 3100ms.
Without any retries the workload encounters ~8000 overload errors. With 3 max retries the workload encounters ~500 errors. With 5 max retries the workload encounters ~5 errors.
The design has been updated to propose increasing the retry limit to 5 and initial delay from 50ms to 100ms.