Connecting to DDM Instances

Number of Connections

max_connection indicates the maximum number of clients that can be concurrently connected to a DDM instance. The value ranges from 10 to 10000. Set the value of max_connection as required.

The max_connection value of RDS ranges from 1 to 100000. Set the value as required.

Maximum number of connections from DDM to RDS = (Maximum number of RDS connections – 10) / Number of DDM instance nodes

The value of max_connection corresponding to the number of client connections must be greater than or equal to the maximum number of connections from DDM to RDS.

Adjust the value of max_connections to prevent it from becoming a bottleneck for connections between DDM and RDS. Short connections are disconnected after they are idle for a specified long time and may be partially released to avoid frequent establishment. The number of connections is 1/3 of the maximum number.

Connection Modes

  • Configure a whitelist for EIPs. You can bind the EIP to your DDM instance and use this EIP to connect to the DDM instance.
  • Buy an ECS and ensure that the ECS is in the same security group and VPC as the target DDM instance.

Scenario

This section uses an ECS as an example to describe how to connect to a DDM instance.

Procedure

  1. Buy an ECS and ensure that the ECS is in the same security group and VPC as the target DDM instance.
  2. Log in to the DDM console, select RDS DB Instance Import in the left pane and click Import RDS DB Instance in the upper right corner.
  3. Select DDM Instance Management in the left pane, locate the target DDM instance in the instance list, and click the name of the instance. On the displayed page, select the Schema Management tab and click Create Schema.
  4. On the displayed page, configure the required parameters. In the Create DDM Account dialog box, create a DDM account and use it to connect to the target DDM instance.
  5. After the schema is created, locate the created schema and copy its connection address (CLI).
  6. Bind an EIP to the ECS, enter the EIP in MobaXterm to connect to the ECS, and upload the MySQL client package using MobaXterm.
  7. In the ECS list, locate the target ECS, and click Remote Login in the Operation column. In the directory containing MySQL client, execute the connection address command copied in 5.

    If the following information is displayed, the connection is successful.