forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Reviewed-by: Rechenburg, Matthias <matthias.rechenburg@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
60 lines
19 KiB
HTML
60 lines
19 KiB
HTML
<a name="EN-US_TOPIC_0000001658895142"></a><a name="EN-US_TOPIC_0000001658895142"></a>
|
|
|
|
<h1 class="topictitle1">Step 2: Creating a Cluster</h1>
|
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_p291616474813">Before using GaussDB(DWS) to analyze data, create a cluster. A cluster consists of multiple nodes in the same subnet. These nodes jointly provide services. This section describes how to create a GaussDB(DWS) cluster.</p>
|
|
<div class="section" id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_section104149431131"><h4 class="sectiontitle">Creating a Cluster</h4><ol id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_ol1649726614233"><li id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_li6029015714233"><span>Log in to the GaussDB(DWS) management console.</span></li><li id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_li226234352"><span>In the navigation pane on the left, choose <span class="uicontrol" id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_u2246c2b3da084fdb8fdd78254cfafda9"><b>Cluster > Dedicated Cluster</b></span>.</span></li><li id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_li63277252161245"><span>On the <strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b6271644544">Dedicated Cluster</strong> page, click <strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b2773104918208">Create Cluster</strong> in the upper right corner.</span></li><li id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_li1422605291313"><span>Select the region to which the cluster to be created belongs.</span><p><ul id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_ul2673243141713"><li id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_li0591886205"><strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b9652420192017">Region</strong>: Select the current working area of the cluster.</li><li id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_li768864321715"><strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b27921748435">AZ</strong>: Retain the default value. </li></ul>
|
|
</p></li><li id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_li3509811181412"><span>Configure node parameters.</span><p><ul id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_ul3617182404112"><li id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_li16136361151"><strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b412811719564">Resource</strong>: For example, <strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b6128317135610">Standard</strong>.</li><li id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_li12608533142115"><strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b106646351267">CPU Architecture</strong>: Select a CPU architecture based on your requirements, for example, <strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b14664183511265">x86</strong>.</li><li id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_li174125558519"><strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b108993477207">Node Flavor</strong>: Retain the default value.</li><li id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_li1363312424111"><strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b18633253159">Nodes</strong>: Retain the default value. At least <strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b122512111846">3</strong> nodes are required.</li></ul>
|
|
</p></li><li id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_li250803614263"><span>Configure cluster parameters.</span><p><ul id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_ul132177543292"><li id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_li721765419298"><strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b16036229252">Cluster Name</strong>: Enter <strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b34153269254">dws-demo</strong>.</li><li id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_li132295612719"><strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b982211416481">Cluster Version</strong>: The current cluster version is displayed and cannot be changed.</li><li id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_li132331754192915"><strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b9837143942513">Default Database</strong>: The value is <span class="parmvalue" id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_parmvalue2233354112917"><b><span id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_text1287103795414">gaussdb</span></b></span>, which cannot be changed.</li><li id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_li1224918542292"><strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b79781929142612">Administrator Account</strong>: The default value is <strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b12853163612269">dbadmin</strong>. Use the default value. After a cluster is created, the client uses this database administrator account and its password to connect to the cluster's database.</li><li id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_li12249954192911"><strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b46931626115914">Administrator Password</strong>: Enter the password.</li><li id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_li326314541299"><strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b377523253011">Confirm Password</strong>: Enter the database administrator password again.</li><li id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_li12263154172918"><strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b13527436304">Database Port</strong>: Use the default port number. This port is used by the client or application to connect to the cluster's database.</li></ul>
|
|
<div class="fignone" id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_fig8713143792811"><span class="figcap"><b>Figure 1 </b>Configuring the cluster</span><br><span><img id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_image164010498163" src="figure/en-us_image_0000001231389497.png" title="Click to enlarge" class="imgResize"></span></div>
|
|
</p></li><li id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_li123915537131"><span>Configure network parameters.</span><p><ul id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_ul12330104953110"><li id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_li12345144913118"><strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b95040215231">VPC</strong>: You can select an existing VPC from the drop-down list. If no VPC has been configured, click <strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b55104218233">View VPC</strong> to enter the VPC management console to create one, for example, <strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b7511621152316">vpc-dws</strong>. Then, go back to the page for creating a cluster on the GaussDB(DWS) management console, click <span><img id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_image0584421174519" src="figure/en-us_image_0000001231389491.png"></span> next to the <span class="parmname" id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_parmname18621165214224"><b>VPC</b></span> drop-down list, and select the new VPC.</li><li id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_li936111493311"><strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b115255215450">Subnet</strong>: When you create a VPC, a subnet is created by default. You can select the corresponding subnet.</li><li id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_li5378124919315"><strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b1067772324620">Security Group</strong>: Select <span class="parmvalue" id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_parmvalue85217455468"><b>Automatic creation</b></span>.<p id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_p1439310499315">The automatically created security group is named <strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b5899171819170">GaussDB(DWS)</strong>-<<em id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_i139006183174">Cluster name</em>>-<<em id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_i129001318121712">GaussDB(DWS) cluster database port</em>>. The outbound allows all access requests, while the inbound enables only <strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b0900218181711">Database Port</strong> for access requests from clients or applications.</p>
|
|
<p id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_p10928141314713">If you select a custom security group, add an inbound rule to it to enable <strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b426010387576">Database Port</strong> for client hosts to access GaussDB(DWS). <a href="#EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_table19508017113430">Table 1</a> shows an example. For details about how to add an inbound rule, see "Security > Security Group > Adding a Security Group Rule" in the <em id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_i4561624851">Virtual Private Cloud User Guide</em>.</p>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_table19508017113430"></a><a name="en-us_topic_0000001372679790_table19508017113430"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_table19508017113430" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Inbound rule example</caption><thead align="left"><tr id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_row23155325113430"><th align="left" class="cellrowborder" valign="top" width="30.64%" id="mcps1.3.2.2.7.2.1.3.5.2.3.1.1"><p id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_p43667920113430"><strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_en-us_topic_0111441330_b63022988143745">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="69.36%" id="mcps1.3.2.2.7.2.1.3.5.2.3.1.2"><p id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_p24312498113430"><strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_en-us_topic_0111441330_b1200428498185923">Example Value</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_row3891192113430"><td class="cellrowborder" valign="top" width="30.64%" headers="mcps1.3.2.2.7.2.1.3.5.2.3.1.1 "><p id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_p63642012113430">Protocol/Application</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.36%" headers="mcps1.3.2.2.7.2.1.3.5.2.3.1.2 "><p id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_p54729336113430">TCP</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_row58663991113430"><td class="cellrowborder" valign="top" width="30.64%" headers="mcps1.3.2.2.7.2.1.3.5.2.3.1.1 "><p id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_p46516451113430">Port</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.36%" headers="mcps1.3.2.2.7.2.1.3.5.2.3.1.2 "><p id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_p9736197113430">8000</p>
|
|
<div class="note" id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_note50434516113430"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_p20516916113430">Enter the value of <span class="parmname" id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_parmname8228641206"><b>Database Port</b></span> set when creating the GaussDB(DWS) cluster. This port is used for receiving client connections to GaussDB(DWS). The default port number is 8000.</p>
|
|
</div></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_row24697782113430"><td class="cellrowborder" valign="top" width="30.64%" headers="mcps1.3.2.2.7.2.1.3.5.2.3.1.1 "><p id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_p58213876113430">Source</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.36%" headers="mcps1.3.2.2.7.2.1.3.5.2.3.1.2 "><p id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_p17703505113430">Select <strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b147691752191610">IP address</strong>, and enter the IP address and subnet mask of the client host that accesses GaussDB(DWS), for example, <strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b1098613187177">192.168.0.10/16</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_li04241449103116"><strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b51088291812">EIP</strong>: Select <span class="parmvalue" id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_parmvalue31149294119"><b>Automatically assign</b></span> to apply for a cluster EIP as the public network IP address of the cluster. In addition, set the EIP bandwidth.</li></ul>
|
|
<div class="fignone" id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_fig746874172719"><span class="figcap"><b>Figure 2 </b>Configuring the network</span><br><span><img id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_image1946874132714" src="figure/en-us_image_0000001185831380.png" title="Click to enlarge" class="imgResize"></span></div>
|
|
</p></li><li id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_li936871610170"><span>Configure the enterprise project to which the cluster belongs. You can configure this parameter only when the Enterprise Project Management service is enabled. The default value is <strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b123293559253">default</strong>.</span><p><p id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_p237117168171">An enterprise project facilitates project-level management and grouping of cloud resources and users.</p>
|
|
<p id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_p43059551051">You can select the default enterprise project <span class="parmvalue" id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_parmvalue179951447105213"><b>default</b></span> or other existing enterprise projects. To create an enterprise project, log in to the Enterprise Management console. For details, see <em id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_i517384915539">Enterprise Management User Guide</em>.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_li12731024123113"><span>Select <span class="parmname" id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_parmname199906301105"><b>Default</b></span> for <strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b537753715815">Advanced Settings</strong> in this example.</span><p><ul id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_ul5460153173816"><li id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_li1446015343814"><strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b153054615712">Default</strong>: indicates that the following advanced settings use the default configurations.<ul id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_ul1986713232429"><li id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_li4252191818248"><strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b53419195119">CNs</strong>: Three CNs are deployed by default.</li><li id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_li6380852173414"><strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b1384220244151">Tag</strong>: By default, no tag is added to the cluster.</li><li id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_li4561835194015"><strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b1317095821514">Encrypt DataStore</strong>: This parameter is disabled by default, indicating that the database is not encrypted.</li></ul>
|
|
</li><li id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_li3460133384"><strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b366894713817">Custom</strong>: Select this option to configure the following advanced parameters: <strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b066824715815">Automated Snapshot</strong>, <strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b66681476818">CNs</strong>, <strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b116681447589">Tag</strong></li></ul>
|
|
</p></li><li id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_li36258555152115"><span>Click <strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b99883153910">Create Now</strong>. The <strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b398811518914">Confirm</strong> page is displayed.</span></li><li id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_li47734902152356"><span>Click <strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b817385610281">Submit</strong>.</span><p><p id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_en-us_topic_0106894662_p4318009414">After the submission is successful, the creation starts. Click <span class="uicontrol" id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_uicontrol69391146151"><b>Back to Cluster List</b></span>. The <strong id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_b20131103310512">Dedicated Cluster</strong> page is displayed. The initial status of the cluster is <span class="parmvalue" id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_parmvalue169465410159"><b>Creating</b></span>. Cluster creation takes some time. Wait for a while. Clusters in the <span class="parmname" id="EN-US_TOPIC_0000001658895142__en-us_topic_0000001372679790_parmname769647905151646"><b>Available</b></span> state are ready for use.</p>
|
|
</p></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_01_0078.html">Getting Started</a></div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script language="JavaScript">
|
|
<!--
|
|
image_size('.imgResize');
|
|
var msg_imageMax = "view original image";
|
|
var msg_imageClose = "close";
|
|
//--></script> |