You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pymongo/asynchronous/mongo_client.py
+14-1Lines changed: 14 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -615,8 +615,18 @@ def __init__(
615
615
client to use Stable API. See `versioned API <https://www.mongodb.com/docs/manual/reference/stable-api/#what-is-the-stable-api--and-should-you-use-it->`_ for
616
616
details.
617
617
618
+
| **Adaptive retry options:**
619
+
| (If not enabled explicitly, adaptive retries will not be enabled.)
620
+
621
+
- `adaptive_retries`: (boolean) Whether the adaptive retry mechanism is enabled for this client.
622
+
If enabled, server overload errors will use a token-bucket based system to mitigate further overload.
623
+
Defaults to ``False``.
624
+
618
625
.. seealso:: The MongoDB documentation on `connections <https://dochub.mongodb.org/core/connections>`_.
619
626
627
+
.. versionchanged:: 4.17
628
+
Added the ``adaptive_retries`` URI and keyword argument.
629
+
620
630
.. versionchanged:: 4.5
621
631
Added the ``serverMonitoringMode`` keyword argument.
Copy file name to clipboardExpand all lines: pymongo/synchronous/mongo_client.py
+14-1Lines changed: 14 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -615,8 +615,18 @@ def __init__(
615
615
client to use Stable API. See `versioned API <https://www.mongodb.com/docs/manual/reference/stable-api/#what-is-the-stable-api--and-should-you-use-it->`_ for
616
616
details.
617
617
618
+
| **Adaptive retry options:**
619
+
| (If not enabled explicitly, adaptive retries will not be enabled.)
620
+
621
+
- `adaptive_retries`: (boolean) Whether the adaptive retry mechanism is enabled for this client.
622
+
If enabled, server overload errors will use a token-bucket based system to mitigate further overload.
623
+
Defaults to ``False``.
624
+
618
625
.. seealso:: The MongoDB documentation on `connections <https://dochub.mongodb.org/core/connections>`_.
619
626
627
+
.. versionchanged:: 4.17
628
+
Added the ``adaptive_retries`` URI and keyword argument.
629
+
620
630
.. versionchanged:: 4.5
621
631
Added the ``serverMonitoringMode`` keyword argument.
0 commit comments