doc-exports/docs/dds/umn/dds_faq_0013.html
Wang , Deng Ke ba65944bfd Added version 4.2.
Reviewed-by: Boka, Ladislav <ladislav.boka@t-systems.com>
Co-authored-by: Wang , Deng Ke <wangdengke2@huawei.com>
Co-committed-by: Wang , Deng Ke <wangdengke2@huawei.com>
2023-07-11 13:21:20 +00:00

25 lines
5.4 KiB
HTML

<a name="dds_faq_0013"></a><a name="dds_faq_0013"></a>
<h1 class="topictitle1">What Should I Do If an ECS Cannot Connect to a DDS DB Instance?</h1>
<div id="body1482404620316"><p id="dds_faq_0013__ab4a41042dd4c46f1b5d79d94d416d9d3">Perform the following steps to identify the problem:</p>
<div class="section" id="dds_faq_0013__section10677164802818"><a name="dds_faq_0013__section10677164802818"></a><a name="section10677164802818"></a><h4 class="sectiontitle">Replica Set Instance</h4><ol id="dds_faq_0013__ol28411830151519"><li id="dds_faq_0013__li7841163018157"><span>Check whether the ECS and replica set instance are in the same VPC.</span><p><ul id="dds_faq_0013__ul15841163081512"><li id="dds_faq_0013__li1984193019154">If yes, go to <a href="#dds_faq_0013__li78427303150">3</a>.</li><li id="dds_faq_0013__li11841163011157">If no, configure the VPC peering connection. For details, see "VPC Peering Connection" in <em id="dds_faq_0013__i148341720164912">Virtual Private Cloud User Guide</em>. Then, go to <a href="#dds_faq_0013__li484115308155">2</a>.</li></ul>
</p></li><li id="dds_faq_0013__li484115308155"><a name="dds_faq_0013__li484115308155"></a><a name="li484115308155"></a><span>Check whether the client and replica set instance are deployed in different CIDR blocks and whether the CIDR block of the client is not 192.168.0.0/16, 172.16.0.0/24, or 10.0.0.0/8.</span><p><ul id="dds_faq_0013__ul2841183013152"><li id="dds_faq_0013__li484117305154">If yes, go to <a href="dds_03_0100.html">Configuring Cross-CIDR Access for Replica Set Instances</a> and then go to <a href="#dds_faq_0013__li78427303150">3</a>.</li><li id="dds_faq_0013__li17841130181515">If no, go to <a href="#dds_faq_0013__li78427303150">3</a>.</li></ul>
</p></li><li id="dds_faq_0013__li78427303150"><a name="dds_faq_0013__li78427303150"></a><a name="li78427303150"></a><span>Check whether a security group has been associated with the ECS.</span><p><ul id="dds_faq_0013__ul7842930101510"><li id="dds_faq_0013__li98421630121513">If yes, check whether the security group rules are suitable. For details, see <a href="dds_02_0049.html">Setting a Security Group</a>. Then, go to <a href="#dds_faq_0013__li984263071514">4</a>.</li><li id="dds_faq_0013__li984233020151">If no, go to the VPC console from the ECS details page and click <strong id="dds_faq_0013__b149622503568">Security Groups</strong> to add a security group.</li></ul>
</p></li><li id="dds_faq_0013__li984263071514"><a name="dds_faq_0013__li984263071514"></a><a name="li984263071514"></a><span>On the ECS, check whether the DDS instance address port can be connected.</span><p><pre class="screen" id="dds_faq_0013__screen128421030201516"><strong id="dds_faq_0013__b186468103114554">telnet</strong> &lt;<em id="dds_faq_0013__i280073042114554">DB instance address</em>&gt; {8635}</pre>
<ul id="dds_faq_0013__ul58421130101516"><li id="dds_faq_0013__li15842163061517">If yes, the network is normal. Check the database username and password. For details, see <a href="en-us_topic_0105284966.html">Connecting to a Replica Set Instance Over Private Networks</a>.</li><li id="dds_faq_0013__li28421130151517">If the ECS still cannot connect to the instance port, contact technical support.</li></ul>
</p></li></ol>
</div>
<div class="section" id="dds_faq_0013__section76751248192819"><h4 class="sectiontitle">Cluster and Single Node Instances</h4><ol id="dds_faq_0013__ol24699561103624"><li id="dds_faq_0013__li58384376103624"><span>Check whether the ECS and DDS instance are located in the same VPC.</span><p><ul id="dds_faq_0013__ul66139476103624"><li id="dds_faq_0013__li58811851103624">If yes, go to <a href="#dds_faq_0013__li10923237103639">2</a>.</li><li id="dds_faq_0013__li59544613103624">If no, create an ECS in the VPC where the DDS instance is located.</li></ul>
</p></li><li id="dds_faq_0013__li10923237103639"><a name="dds_faq_0013__li10923237103639"></a><a name="li10923237103639"></a><span>Check whether a security group has been associated with the ECS.</span><p><ul id="dds_faq_0013__ul3790537110375"><li id="dds_faq_0013__li2138325592714">If yes, check whether the security group rules are suitable. For details, see <a href="dds_02_0022.html">Setting a Security Group</a>. Then, go to <a href="#dds_faq_0013__li2748172710406">3</a>.</li><li id="dds_faq_0013__li5043620910375">If no, go to the VPC console from the ECS details page and click <strong id="dds_faq_0013__b4931153024716">Security Groups</strong> to add a security group.</li></ul>
</p></li><li id="dds_faq_0013__li2748172710406"><a name="dds_faq_0013__li2748172710406"></a><a name="li2748172710406"></a><span>On the ECS, check whether the DDS instance address port can be connected.</span><p><pre class="screen" id="dds_faq_0013__screen8209318103624"><strong id="dds_faq_0013__b1140765647114554">telnet</strong> &lt;<em id="dds_faq_0013__i495647494114554">DB instance address</em>&gt; {8635}</pre>
<ul id="dds_faq_0013__ul11903995103624"><li id="dds_faq_0013__li79199592810">If yes, the network is normal. Check the database username and password. For details, see <a href="en-us_topic_0044018334.html">Connecting to a Cluster Instance Over Private Networks</a>.</li><li id="dds_faq_0013__li60974989103624">If the ECS still cannot connect to the instance port, contact technical support.</li></ul>
</p></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dds_faq_0104.html">Database Connection</a></div>
</div>
</div>