doc-exports/docs/dws/umn/dws_01_0033.html
luhuayi 85562e1879 DWS UMN 831.100 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: luhuayi <luhuayi@huawei.com>
Co-committed-by: luhuayi <luhuayi@huawei.com>
2024-11-13 08:55:54 +00:00

84 lines
16 KiB
HTML

<a name="EN-US_TOPIC_0000001924728856"></a><a name="EN-US_TOPIC_0000001924728856"></a>
<h1 class="topictitle1">Obtaining the Cluster Connection Address</h1>
<div id="body1492586202773"><div class="section" id="EN-US_TOPIC_0000001924728856__section26616723151647"><h4 class="sectiontitle">Scenario</h4><p id="EN-US_TOPIC_0000001924728856__p04121558928">You can access GaussDB(DWS) clusters by different methods and the connection address of each connection method varies. This section describes how to view and obtain the private network address on the <span id="EN-US_TOPIC_0000001924728856__text1541015910162">cloud</span> platform, public network address on the Internet, and JDBC connection strings.</p>
<p id="EN-US_TOPIC_0000001924728856__p19197496151650">To obtain the cluster connection address, use either of the following methods:</p>
<ul id="EN-US_TOPIC_0000001924728856__ul175171650155913"><li id="EN-US_TOPIC_0000001924728856__li45175505598"><a href="#EN-US_TOPIC_0000001924728856__section5539467151713">Obtaining the cluster connection address on the Client Connections Page</a></li><li id="EN-US_TOPIC_0000001924728856__li10517175085915"><a href="#EN-US_TOPIC_0000001924728856__section149501253104810">Obtaining the Cluster Access Addresses on the Cluster Information Page</a></li></ul>
</div>
<div class="section" id="EN-US_TOPIC_0000001924728856__section5539467151713"><a name="EN-US_TOPIC_0000001924728856__section5539467151713"></a><a name="section5539467151713"></a><h4 class="sectiontitle">Obtaining the cluster connection address on the <strong id="EN-US_TOPIC_0000001924728856__b51971010182113">Client Connections</strong> Page</h4><ol id="EN-US_TOPIC_0000001924728856__ol26716197151740"><li id="EN-US_TOPIC_0000001924728856__li6029015714233"><span>Log in to the GaussDB(DWS) console.</span></li><li id="EN-US_TOPIC_0000001924728856__li25411875155123"><span>In the navigation tree on the left, choose <strong id="EN-US_TOPIC_0000001924728856__b6175791587">Management</strong> &gt; <strong id="EN-US_TOPIC_0000001924728856__b91758917810">Client Connections</strong>.</span></li><li id="EN-US_TOPIC_0000001924728856__li40219600152241"><span>In the <span class="parmname" id="EN-US_TOPIC_0000001924728856__parmname55222884142917"><b>Data Warehouse Connection Information</b></span> area, select an available cluster.</span><p><p id="EN-US_TOPIC_0000001924728856__p1627472815235">You can only select clusters in the <span class="parmvalue" id="EN-US_TOPIC_0000001924728856__parmvalue1158130015145817"><b>Available</b></span> state.</p>
</p></li><li id="EN-US_TOPIC_0000001924728856__li44185516152326"><span>View and obtain the cluster connection information.</span><p><ul id="EN-US_TOPIC_0000001924728856__ul15059897152410"><li id="EN-US_TOPIC_0000001924728856__li63718748152412"><strong id="EN-US_TOPIC_0000001924728856__b1042613551116">Private Network IP Address</strong></li><li id="EN-US_TOPIC_0000001924728856__li39294468152414"><strong id="EN-US_TOPIC_0000001924728856__b16303536101115">Public Network IP Address</strong></li><li id="EN-US_TOPIC_0000001924728856__li85061832121919"><strong id="EN-US_TOPIC_0000001924728856__b171431675785950">ELB Address</strong></li><li id="EN-US_TOPIC_0000001924728856__li41645464152410"><span class="parmname" id="EN-US_TOPIC_0000001924728856__parmname989588142954"><b>JDBC URL (Private Network)</b></span></li><li id="EN-US_TOPIC_0000001924728856__li135445781423"><span class="parmname" id="EN-US_TOPIC_0000001924728856__parmname816064060144917"><b>JDBC URL (Public Network)</b></span></li><li id="EN-US_TOPIC_0000001924728856__li3503184262914"><span class="parmname" id="EN-US_TOPIC_0000001924728856__parmname056896124915"><b>ODBC URL</b></span></li></ul>
<div class="note" id="EN-US_TOPIC_0000001924728856__note14551036152422"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001924728856__ul16258155912525"><li id="EN-US_TOPIC_0000001924728856__li651204125311">If no EIP is automatically assigned during cluster creation, <span class="parmname" id="EN-US_TOPIC_0000001924728856__parmname380811355152"><b>Public Network Address</b></span> is empty. If you want to use a public network address (consisting of an EIP and the database port) to access the cluster from the Internet, click <span class="parmname" id="EN-US_TOPIC_0000001924728856__parmname10541646538"><b>Bind EIP</b></span> to bind one.</li><li id="EN-US_TOPIC_0000001924728856__li17258105916525">If an EIP is bound during cluster creation but you do not want to use the public network address to access the cluster, click <span class="parmname" id="EN-US_TOPIC_0000001924728856__parmname14257195915520"><b>Unbind EIP</b></span> to unbind the EIP. After the EIP is unbound, <span class="parmname" id="EN-US_TOPIC_0000001924728856__parmname189921384158"><b>Public Network Address</b></span> is empty.</li><li id="EN-US_TOPIC_0000001924728856__li71334429596">If a cluster was not bound to ELB when it was created, the <strong id="EN-US_TOPIC_0000001924728856__b21521514585950">ELB Address</strong> parameter will be left blank. You can bind the cluster to ELB to avoid single CN failures.</li><li id="EN-US_TOPIC_0000001924728856__li132015402257">If a cluster has been bound to ELB, use the ELB address to connect to the cluster for high availability purposes.</li></ul>
</div></div>
</p></li></ol>
</div>
<div class="section" id="EN-US_TOPIC_0000001924728856__section149501253104810"><a name="EN-US_TOPIC_0000001924728856__section149501253104810"></a><a name="section149501253104810"></a><h4 class="sectiontitle">Obtaining the Cluster Access Addresses on the Cluster Information Page</h4><ol id="EN-US_TOPIC_0000001924728856__ol15285145694916"><li id="EN-US_TOPIC_0000001924728856__li972954712269"><span>Log in to the GaussDB(DWS) console.</span></li><li id="EN-US_TOPIC_0000001924728856__li33798861115225"><span>In the navigation pane on the left, choose <span class="uicontrol" id="EN-US_TOPIC_0000001924728856__uicontrol162654193219"><b>Clusters</b></span> &gt; <strong id="EN-US_TOPIC_0000001924728856__b152663119322">Dedicated Clusters<span id="EN-US_TOPIC_0000001924728856__text10214142155720"></span></strong>.</span></li><li id="EN-US_TOPIC_0000001924728856__li53353217115225"><span>In the cluster list, click the name of the target cluster. The <span class="parmname" id="EN-US_TOPIC_0000001924728856__parmname10416912115225"><b>Cluster Information</b></span> page is displayed.</span></li><li id="EN-US_TOPIC_0000001924728856__li1270911918357"><span>In the <strong id="EN-US_TOPIC_0000001924728856__b975316447410">Connection</strong> area, view and obtain the cluster's access address information, including the private network address and public network address.</span><p><div class="p" id="EN-US_TOPIC_0000001924728856__p105436111131">
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001924728856__table878289143910" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Connection</caption><thead align="left"><tr id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_r2b6913f2352a423d92e248eee4ed7ccf"><th align="left" class="cellrowborder" valign="top" width="19%" id="mcps1.3.3.2.4.2.1.1.2.3.1.1"><p id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_en-us_topic_0106894684_p77831797399">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="81%" id="mcps1.3.3.2.4.2.1.1.2.3.1.2"><p id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_en-us_topic_0106894684_p137830993917">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_row614113283186"><td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.3.2.4.2.1.1.2.3.1.1 "><p id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_p92197405187">Private Network Domain Name</p>
</td>
<td class="cellrowborder" valign="top" width="81%" headers="mcps1.3.3.2.4.2.1.1.2.3.1.2 "><p id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_p12219164012187">Domain name for accessing the cluster database through the internal network. The domain name corresponds to all CN IP addresses. The private network domain address is automatically generated when a cluster is created. The default naming rule is <em id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_i126545262011">cluster name</em>.dws.otc-tsi.de.</p>
<div class="note" id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_note1722018408181"><span class="notetitle"> NOTE: </span><div class="notebody"><ul id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_ul516212810172"><li id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_li1816278141719">If the cluster name does not comply with the domain name standards, the prefix of the default access domain name will be adjusted accordingly.</li><li id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_li8163198121713">Load balancing is not supported.</li></ul>
</div></div>
<p id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_p17220940111814">You can click <strong id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_b120093217113036">Modify </strong>to change the private network domain name. The access domain name contains 4 to 63 characters, which consists of letters, digits, and hyphens (-), and must start with a letter.</p>
<p id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_p1622018408187">For details, see <a href="dws_01_0140.html">Managing Access Domain Names</a>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_row1267154711810"><td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.3.2.4.2.1.1.2.3.1.1 "><p id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_p1176213319195">Private Network IP Address</p>
</td>
<td class="cellrowborder" valign="top" width="81%" headers="mcps1.3.3.2.4.2.1.1.2.3.1.2 "><p id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_p1376243141919">IP address for accessing the database in the cluster over the private network.</p>
<div class="note" id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_note396914464423"><span class="notetitle"> NOTE: </span><div class="notebody"><ul id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_ul173316457329"><li id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_li1634114510323">A private IP address is automatically generated when you create a cluster. The IP address is fixed.</li><li id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_li1150131812345">The number of private IP addresses equals the number of CNs. You can log in to any node to connect to the cluster.</li><li id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_li146871531113714">If you access a fixed IP address over the internal network, all the resource pools will run on a single CN.</li></ul>
</div></div>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_row1496320459196"><td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.3.2.4.2.1.1.2.3.1.1 "><p id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_p116044012020">Public Network Domain Name</p>
</td>
<td class="cellrowborder" valign="top" width="81%" headers="mcps1.3.3.2.4.2.1.1.2.3.1.2 "><p id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_p19604108201">Name of the domain for accessing the database in the cluster over the public network. For details, see <a href="dws_01_0140.html">Managing Access Domain Names</a>.</p>
<div class="note" id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_note422611612175"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_p63829199174">Load balancing is not supported.</p>
</div></div>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_row14468195011915"><td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.3.2.4.2.1.1.2.3.1.1 "><p id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_p66051006208">Public Network IP Address</p>
</td>
<td class="cellrowborder" valign="top" width="81%" headers="mcps1.3.3.2.4.2.1.1.2.3.1.2 "><p id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_p176058022019">IP address for accessing the database in the cluster over the public network.</p>
<div class="note" id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_note10605804209"><span class="notetitle"> NOTE: </span><div class="notebody"><ul id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_ul176051606208"><li id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_li7605140172011">If no EIP is assigned during cluster creation and <span class="parmname" id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_parmname941317568113036"><b>Public Network IP Address</b></span> is empty, click <span class="parmname" id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_parmname912963336113036"><b>Edit</b></span> to bind an EIP to the cluster.</li><li id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_li260513020200">If an EIP is bound during cluster creation, click <span class="parmname" id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_parmname10909616164316"><b>Edit</b></span> to unbind the EIP.</li></ul>
</div></div>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_r4ff9b08ec9b64c62bd6bf3272c6eac82"><td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.3.2.4.2.1.1.2.3.1.1 "><p id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_a2be5aa42a2be4708a4c93d9017cf7705">Initial Administrator</p>
</td>
<td class="cellrowborder" valign="top" width="81%" headers="mcps1.3.3.2.4.2.1.1.2.3.1.2 "><p id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_a92f034cc83264dceaf7957ee023e4fbe">Database administrator specified during cluster creation. When you connect to the cluster for the first time, you need to use the initial database administrator and password to connect to the default database.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_r758c339bb9794651bc85a7d94aea003a"><td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.3.2.4.2.1.1.2.3.1.1 "><p id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_en-us_topic_0106894684_p193208401279">Port</p>
</td>
<td class="cellrowborder" valign="top" width="81%" headers="mcps1.3.3.2.4.2.1.1.2.3.1.2 "><p id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_en-us_topic_0106894684_p203223409278">Port number for accessing the cluster database through the public network or private network. The port number is specified when the cluster is created.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_row11775171714206"><td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.3.2.4.2.1.1.2.3.1.1 "><p id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_p20252624192011">Default Database</p>
</td>
<td class="cellrowborder" valign="top" width="81%" headers="mcps1.3.3.2.4.2.1.1.2.3.1.2 "><p id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_p7252624102011">Database name specified when the cluster is created. When you connect to the cluster for the first time, connect to the default database.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_row6395626202611"><td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.3.2.4.2.1.1.2.3.1.1 "><p id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_p0333592612">ELB Address</p>
</td>
<td class="cellrowborder" valign="top" width="81%" headers="mcps1.3.3.2.4.2.1.1.2.3.1.2 "><p id="EN-US_TOPIC_0000001924728856__en-us_topic_0000001952008205_p193316596610">To achieve high availability and avoid single-CN failures, a new cluster needs to be bound to ELB. You are advised to use the ELB address to connect to the cluster.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</p></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_01_0131.html">Cluster Connection</a></div>
</div>
</div>