From 7f8097e9f1039ef5d6ac9b448943493626dcdc7b Mon Sep 17 00:00:00 2001 From: Stephanie Aurelio Date: Mon, 7 Jul 2025 15:45:54 -0700 Subject: [PATCH 1/3] add loadBalanced details --- .../connection-options/cluster-settings.txt | 22 ++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/source/connect/connection-options/cluster-settings.txt b/source/connect/connection-options/cluster-settings.txt index 611bb21f..dafc3326 100644 --- a/source/connect/connection-options/cluster-settings.txt +++ b/source/connect/connection-options/cluster-settings.txt @@ -69,8 +69,16 @@ available options. *Default:* ``false`` * - ``loadBalanced`` - - Specifies whether the driver is connecting to MongoDB using a - load balancer. + - Specifies whether the driver is connecting to MongoDB using a load + balancer. If set to ``true``, the driver assumes that it is + connecting through a load balancer. + + You can set this option to ``true`` only if you meet the following requirements: + + - You specify only one host name + - You aren't connecting to a replica set + - The ``srvMaxHosts`` option is unset or has a value of ``0`` + - The ``directconnection`` option if unset or has a value of ``false`` *Default:* ``false`` @@ -119,7 +127,15 @@ available options. * - ``SetLoadBalanced()`` - Specifies whether the driver is connecting to MongoDB using a - load balancer. + load balancer. If set to ``true``, the driver assumes that it is + connecting through a load balancer. + + You can set this option to ``true`` only if you meet the following requirements: + + - You specify only one host name + - You aren't connecting to a replica set + - The ``srvMaxHosts`` option is unset or has a value of ``0`` + - The ``directconnection`` option if unset or has a value of ``false`` *Default:* ``false`` From af6441d724c6be7e19d3678932db2eec59cb1687 Mon Sep 17 00:00:00 2001 From: Stephanie Aurelio Date: Tue, 8 Jul 2025 14:51:15 -0700 Subject: [PATCH 2/3] lm feedback --- source/connect/connection-options/cluster-settings.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/connect/connection-options/cluster-settings.txt b/source/connect/connection-options/cluster-settings.txt index dafc3326..3dd6a1da 100644 --- a/source/connect/connection-options/cluster-settings.txt +++ b/source/connect/connection-options/cluster-settings.txt @@ -69,7 +69,7 @@ available options. *Default:* ``false`` * - ``loadBalanced`` - - Specifies whether the driver is connecting to MongoDB using a load + - Specifies whether the driver is connecting to MongoDB by using a load balancer. If set to ``true``, the driver assumes that it is connecting through a load balancer. @@ -78,7 +78,7 @@ available options. - You specify only one host name - You aren't connecting to a replica set - The ``srvMaxHosts`` option is unset or has a value of ``0`` - - The ``directconnection`` option if unset or has a value of ``false`` + - The ``directconnection`` option is unset or has a value of ``false`` *Default:* ``false`` @@ -126,7 +126,7 @@ available options. *Default:* ``false`` * - ``SetLoadBalanced()`` - - Specifies whether the driver is connecting to MongoDB using a + - Specifies whether the driver is connecting to MongoDB by using a load balancer. If set to ``true``, the driver assumes that it is connecting through a load balancer. @@ -135,7 +135,7 @@ available options. - You specify only one host name - You aren't connecting to a replica set - The ``srvMaxHosts`` option is unset or has a value of ``0`` - - The ``directconnection`` option if unset or has a value of ``false`` + - The ``directconnection`` option is unset or has a value of ``false`` *Default:* ``false`` From 5edeba6f5367b25d6c7d956deb5fb47ba6272709 Mon Sep 17 00:00:00 2001 From: Stephanie Aurelio Date: Tue, 8 Jul 2025 14:57:35 -0700 Subject: [PATCH 3/3] update capitalization --- source/connect/connection-options/cluster-settings.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/connect/connection-options/cluster-settings.txt b/source/connect/connection-options/cluster-settings.txt index 3dd6a1da..ff2f043c 100644 --- a/source/connect/connection-options/cluster-settings.txt +++ b/source/connect/connection-options/cluster-settings.txt @@ -78,7 +78,7 @@ available options. - You specify only one host name - You aren't connecting to a replica set - The ``srvMaxHosts`` option is unset or has a value of ``0`` - - The ``directconnection`` option is unset or has a value of ``false`` + - The ``directConnection`` option is unset or has a value of ``false`` *Default:* ``false`` @@ -135,7 +135,7 @@ available options. - You specify only one host name - You aren't connecting to a replica set - The ``srvMaxHosts`` option is unset or has a value of ``0`` - - The ``directconnection`` option is unset or has a value of ``false`` + - The ``directConnection`` option is unset or has a value of ``false`` *Default:* ``false``