docs: explain directly connecting to mongo node (#11314)
This commit is contained in:
parent
478edd36c8
commit
a45410368d
|
|
@ -12,6 +12,10 @@ All MongoDB server versions from 2.6 and higher are supported.
|
||||||
## For example:
|
## For example:
|
||||||
## mongodb://user:auth_key@10.10.3.30:27017,
|
## mongodb://user:auth_key@10.10.3.30:27017,
|
||||||
## mongodb://10.10.3.33:18832,
|
## mongodb://10.10.3.33:18832,
|
||||||
|
##
|
||||||
|
## If connecting to a cluster, users must include the "?connect=direct" in
|
||||||
|
## the URL to ensure that the connection goes directly to the specified node
|
||||||
|
## and not have all connections passed to the master node.
|
||||||
servers = ["mongodb://127.0.0.1:27017/?connect=direct"]
|
servers = ["mongodb://127.0.0.1:27017/?connect=direct"]
|
||||||
|
|
||||||
## When true, collect cluster status.
|
## When true, collect cluster status.
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,10 @@
|
||||||
## For example:
|
## For example:
|
||||||
## mongodb://user:auth_key@10.10.3.30:27017,
|
## mongodb://user:auth_key@10.10.3.30:27017,
|
||||||
## mongodb://10.10.3.33:18832,
|
## mongodb://10.10.3.33:18832,
|
||||||
|
##
|
||||||
|
## If connecting to a cluster, users must include the "?connect=direct" in
|
||||||
|
## the URL to ensure that the connection goes directly to the specified node
|
||||||
|
## and not have all connections passed to the master node.
|
||||||
servers = ["mongodb://127.0.0.1:27017/?connect=direct"]
|
servers = ["mongodb://127.0.0.1:27017/?connect=direct"]
|
||||||
|
|
||||||
## When true, collect cluster status.
|
## When true, collect cluster status.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue