When you no longer need to connect to a shard or Configserver node, you can release its connection string.


  • The connection string of a Mongos node cannot be released.
  • After the connection string of a shard or Configserver node is released, the connection strings of the primary and secondary nodes are released and you cannot use this connection string to connect to the released node. Proceed with caution.
  • This operation releases the internal connection string of the node. If the node also has a public connection string and the connection string is no longer needed, you can Release a public connection string.


  1. Log on to the ApsaraDB for MongoDB console.
  2. In the upper-left corner of the page, select the region where the target ApsaraDB for MongoDB subscription instance resides.
  3. In the left-side navigation pane, click Sharding Instances.
  4. Find the target instance and click its instance ID.
  5. In the left-side navigation pane, click Database Connection.
  6. Find the node and click Release in the Actions column.
    Note db indicates a shard node. cs indicates a Configserver node.
    Release a connection string
  7. In the dialog box that appears, click OK.
  8. Wait until the instance status changes from Releasing Network Connection to Running.