diff --git a/source/connect/connection-options/cluster-settings.txt b/source/connect/connection-options/cluster-settings.txt index 611bb21f..ff2f043c 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 by 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 is unset or has a value of ``false`` *Default:* ``false`` @@ -118,8 +126,16 @@ available options. *Default:* ``false`` * - ``SetLoadBalanced()`` - - Specifies whether the driver is connecting to MongoDB using a - load balancer. + - 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. + + 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 is unset or has a value of ``false`` *Default:* ``false``