ApsaraDB for MongoDB supports multiple methods to connect to instances. The following sections list connection methods by instance type, common connection scenarios, and troubleshooting resources.
Connection methods by instance type
|
Instance type |
Connection method |
|
Standalone instance |
|
|
Replica set instance |
|
|
Sharded cluster instance |
Common connection scenarios
-
Connect to MongoDB from a local client over the public network
-
Connect to MongoDB from a local client through an SSL-VPN tunnel
-
Connect to MongoDB from an ECS instance in a different network type over the internal network
-
Connect to MongoDB from an ECS instance in a different region over the internal network