GaussDB(for Mongo) supports databases connections over public and private networks.
Table 1 Connection methods | Method | IP Address | Scenario | Description |
| Private network | Private IP address | A private IP address is provided by default. - If your applications are deployed on an ECS and located in the same region, AZ, and VPC subnet as the DB instance, you are advised to use a private IP address to connect to the DB instance.
- By default, GaussDB(for Mongo) cannot be accessed through ECSs that are not in the same security group. If the ECS is not in the same group, you need to add an inbound rule to the GaussDB(for Mongo) security group to enable access.
- The default GaussDB(for Mongo) port is 8635, but this port can be modified if necessary.
| High security and good performance |
| Public network | EIP | - If your applications are running on an ECS that is in a different region from the one where the GaussDB(for Mongo) instance is located, you are advised to use an EIP to connect the ECS to your GaussDB(for Mongo) instances.
- If your applications are deployed on another cloud platform, EIP is recommended.
| - Low security
- For faster transmission and improved security, you are advised to migrate your applications to an ECS that is in the same subnet as your GaussDB(for Mongo) instance and use a private IP address to access the instance.
|
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.