Updated on 2022-09-20 GMT+08:00

Connecting to a DDS Instance Through an EIP

This section uses a DDS replica set instance and Windows operating system as an example to describe how to bind an EIP on the DDS console, set a security group, and connect to the DDS instance using the Robo 3T tool in your local environment. The procedures are as follows:

Step 1: Bind an EIP

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and a project.
  3. Click in the upper left corner of the page and choose Databases > Document Database Service.
  4. On the Instances page, click the instance. The Basic Information page is displayed.
  5. In the Node Information area, locate the row that contains the primary node and click Bind EIP.
  6. In the displayed dialog box, select the purchased EIP and click OK.
  7. After the binding is successful, view the EIP in the Node Information area.

Step 2: Configure a Security Group

  1. In the DB Information area on the Basic Information page, ensure that SSL is enabled.
  2. In the Network Information area, check the database port of the DB instance.
  3. In the Network Information area, click the security group name.
  4. On the Security Groups page, click the security group name.
  5. Click the Inbound Rules tab and click Add Rule. In the displayed dialog box, add an inbound rule for the database port.

Step 3: Connect to a DDS Instance

  1. Access the Robo 3T download address https://robomongo.org/download and click Download Robo 3T.
    Figure 1 Downloading page
  2. In the displayed dialog box, enter the required information and click Download for Windows to download the robo3t-1.4.4-windows-x86_64-e6ac9ec5.zip package.
    Figure 2 Downloading Robo 3T
  3. Decompress the downloaded package and double-click the robo3t.exe file in the decompressed directory to start the installation.
  4. After the installation is complete, start the tool.
    Figure 3 Main window
  5. Run the installed Robo 3T. On the displayed dialog box, click Create.
    Figure 4 Connections
  6. In the Connection Settings dialog box, set the parameters of the new connection.
    1. On the Connection tab, enter the name of the new connection in the Name text box and enter the EIP and database port that are bound to the DDS DB instance in the Address text box.
      Figure 5 Connection
    2. On the Authentication tab, set Database to admin, User Name to rwuser, and Password to the administrator password you set during the creation of the cluster instance.
      Figure 6 Authentication
    3. On the TLS tab, select Use TLS protocol and select Self-signed Certificate for Authentication Method.
      Figure 7 SSL
    4. Click Save.
  7. On the MongoDB Connections page, click Connect to connect to the replica set instance.
    Figure 8 Replica set connection information
  8. View the results. The replica set instance is successfully connected.
    Figure 9 Connection succeeded