PYTHON-5629 Increase max overload retries from 3 to 5 and initial delay from 50ms to 100ms#2599
Merged
ShaneHarvey merged 1 commit intomongodb:backpressurefrom Oct 23, 2025
Merged
Conversation
…ay from 50ms to 100ms
blink1073
added a commit
that referenced
this pull request
Nov 24, 2025
…tion rate limiter triggers (#2509) Co-authored-by: Iris <58442094+sleepyStick@users.noreply.github.com> Co-authored-by: Noah Stapp <noah.stapp@mongodb.com> Co-authored-by: Shane Harvey <shnhrv@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> PYTHON-5629 Increase max overload retries from 3 to 5 and initial delay from 50ms to 100ms (#2599) PYTHON-5517 Simplify pool backpressure behavior (#2611) synchro update network_layer update pool shared update pool shared update run-tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.