Skip to content

Commit 6eace4f

Browse files
[Ruby] Load Balancers (#166)
* DOCSP-51932: v2.21.2 patch release (#163) * client option * undo snooty change * formatting * formatting * DR feedback --------- Co-authored-by: Nora Reidy <[email protected]>
1 parent 6118893 commit 6eace4f

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

source/connect/connection-options.txt

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ and the ``tls`` option with a value of ``true``:
4646
uri = "mongodb://<hostname>:<port>/?connectTimeoutMS=60000&tls=true"
4747
client = Mongo::Client.new(uri)
4848

49-
Using a ``Mongo::Client``
50-
~~~~~~~~~~~~~~~~~~~~~~~~~
49+
Using a Mongo::Client
50+
~~~~~~~~~~~~~~~~~~~~~
5151

5252
You can pass connection options as arguments to the ``Mongo::Client`` constructor
5353
instead of including them in your connection URI.
@@ -150,6 +150,14 @@ Server Selection
150150
* - Connection Option
151151
- Description
152152

153+
* - **:load_balanced**
154+
- | Whether to expect to connect to a load balancer.
155+
|
156+
| **Data Type**: ``Boolean``
157+
| **Default**: ``false``
158+
| **Client Example**: ``load_balanced: { true }``
159+
| **Connection URI Example**: N/A
160+
153161
* - **:server_selector**
154162
- | Get the server selector. It either uses the read preference
155163
defined in the client options or defaults to a Primary

0 commit comments

Comments
 (0)