forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: luhuayi <luhuayi@huawei.com> Co-committed-by: luhuayi <luhuayi@huawei.com>
60 lines
15 KiB
HTML
60 lines
15 KiB
HTML
<a name="EN-US_TOPIC_0000001924569384"></a><a name="EN-US_TOPIC_0000001924569384"></a>
|
|
|
|
<h1 class="topictitle1">Step 2: Creating a Cluster</h1>
|
|
<div id="body1488272827608"><p id="EN-US_TOPIC_0000001924569384__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_0000001924569384__section104149431131"><h4 class="sectiontitle">Creating a Cluster</h4><ol id="EN-US_TOPIC_0000001924569384__ol1649726614233"><li id="EN-US_TOPIC_0000001924569384__li6029015714233"><span>Log in to the GaussDB(DWS) management console.</span></li><li id="EN-US_TOPIC_0000001924569384__li226234352"><span>In the navigation pane, choose <strong id="EN-US_TOPIC_0000001924569384__b4998185711718">Cluster</strong> > <strong id="EN-US_TOPIC_0000001924569384__b177619317811">Dedicated Clusters<span id="EN-US_TOPIC_0000001924569384__text114261216165419"></span></strong>.</span></li><li id="EN-US_TOPIC_0000001924569384__li63277252161245"><span>On the <strong id="EN-US_TOPIC_0000001924569384__b1388419371283">Dedicated Clusters<span id="EN-US_TOPIC_0000001924569384__text163383245542"></span></strong> page, click <strong id="EN-US_TOPIC_0000001924569384__b2088518371815">Create Cluster</strong> in the upper right corner.</span></li><li id="EN-US_TOPIC_0000001924569384__li1422605291313"><span>Select the region to which the cluster to be created belongs.</span><p><ul id="EN-US_TOPIC_0000001924569384__ul2673243141713"><li id="EN-US_TOPIC_0000001924569384__li0591886205"><strong id="EN-US_TOPIC_0000001924569384__b9652420192017">Region</strong>: Select the current working area of the cluster.</li><li id="EN-US_TOPIC_0000001924569384__li768864321715"><strong id="EN-US_TOPIC_0000001924569384__b27921748435">AZ</strong>: Retain the default value. </li></ul>
|
|
</p></li><li id="EN-US_TOPIC_0000001924569384__li3509811181412"><span>Configure node parameters.</span><p><ul id="EN-US_TOPIC_0000001924569384__ul3617182404112"><li id="EN-US_TOPIC_0000001924569384__li16136361151"><strong id="EN-US_TOPIC_0000001924569384__b412811719564">Resource</strong>: For example, <strong id="EN-US_TOPIC_0000001924569384__b6128317135610">Standard</strong>.</li><li id="EN-US_TOPIC_0000001924569384__li12608533142115"><strong id="EN-US_TOPIC_0000001924569384__b106646351267">CPU Architecture</strong>: Select a CPU architecture based on your requirements, for example, <strong id="EN-US_TOPIC_0000001924569384__b14664183511265">x86</strong>.</li><li id="EN-US_TOPIC_0000001924569384__li174125558519"><strong id="EN-US_TOPIC_0000001924569384__b108993477207">Node Flavor</strong>: Retain the default value.</li><li id="EN-US_TOPIC_0000001924569384__li1363312424111"><strong id="EN-US_TOPIC_0000001924569384__b18633253159">Nodes</strong>: Retain the default value. At least <strong id="EN-US_TOPIC_0000001924569384__b122512111846">3</strong> nodes are required.</li></ul>
|
|
</p></li><li id="EN-US_TOPIC_0000001924569384__li250803614263"><span>Configure cluster parameters.</span><p><ul id="EN-US_TOPIC_0000001924569384__ul132177543292"><li id="EN-US_TOPIC_0000001924569384__li721765419298"><strong id="EN-US_TOPIC_0000001924569384__b16036229252">Cluster Name</strong>: Enter <strong id="EN-US_TOPIC_0000001924569384__b34153269254">dws-demo</strong>.</li><li id="EN-US_TOPIC_0000001924569384__li132295612719"><strong id="EN-US_TOPIC_0000001924569384__b982211416481">Cluster Version</strong>: The current cluster version is displayed and cannot be changed.</li><li id="EN-US_TOPIC_0000001924569384__li132331754192915"><strong id="EN-US_TOPIC_0000001924569384__b9837143942513">Default Database</strong>: The value is <span class="parmvalue" id="EN-US_TOPIC_0000001924569384__parmvalue2233354112917"><b><span id="EN-US_TOPIC_0000001924569384__text1287103795414">gaussdb</span></b></span>, which cannot be changed.</li><li id="EN-US_TOPIC_0000001924569384__li1224918542292"><strong id="EN-US_TOPIC_0000001924569384__b79781929142612">Administrator Account</strong>: The default value is <strong id="EN-US_TOPIC_0000001924569384__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_0000001924569384__li12249954192911"><strong id="EN-US_TOPIC_0000001924569384__b46931626115914">Administrator Password</strong>: Enter the password.</li><li id="EN-US_TOPIC_0000001924569384__li326314541299"><strong id="EN-US_TOPIC_0000001924569384__b377523253011">Confirm Password</strong>: Enter the database administrator password again.</li><li id="EN-US_TOPIC_0000001924569384__li12263154172918"><strong id="EN-US_TOPIC_0000001924569384__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_0000001924569384__fig8713143792811"><span class="figcap"><b>Figure 1 </b>Configuring the cluster</span><br><span><img id="EN-US_TOPIC_0000001924569384__image164010498163" src="figure/en-us_image_0000001951848741.png" width="465.5" height="321.034469" title="Click to enlarge" class="imgResize"></span></div>
|
|
</p></li><li id="EN-US_TOPIC_0000001924569384__li123915537131"><span>Configure network parameters.</span><p><ul id="EN-US_TOPIC_0000001924569384__ul12330104953110"><li id="EN-US_TOPIC_0000001924569384__li12345144913118"><strong id="EN-US_TOPIC_0000001924569384__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_0000001924569384__b55104218233">View VPC</strong> to enter the VPC management console to create one, for example, <strong id="EN-US_TOPIC_0000001924569384__b7511621152316">vpc-dws</strong>. Then, go back to the page for creating a cluster on the GaussDB(DWS) console, click <span><img id="EN-US_TOPIC_0000001924569384__image0584421174519" src="figure/en-us_image_0000001924569656.png"></span> next to the <span class="parmname" id="EN-US_TOPIC_0000001924569384__parmname18621165214224"><b>VPC</b></span> drop-down list, and select the new VPC.</li><li id="EN-US_TOPIC_0000001924569384__li936111493311"><strong id="EN-US_TOPIC_0000001924569384__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_0000001924569384__li5378124919315"><strong id="EN-US_TOPIC_0000001924569384__b1067772324620">Security Group</strong>: Select <span class="parmvalue" id="EN-US_TOPIC_0000001924569384__parmvalue85217455468"><b>Automatic creation</b></span>.<p id="EN-US_TOPIC_0000001924569384__p1439310499315">The automatically created security group is named <strong id="EN-US_TOPIC_0000001924569384__b5899171819170">GaussDB(DWS)</strong>-<<em id="EN-US_TOPIC_0000001924569384__i139006183174">Cluster name</em>>-<<em id="EN-US_TOPIC_0000001924569384__i129001318121712">GaussDB(DWS) cluster database port</em>>. The outbound allows all access requests, while the inbound enables only <strong id="EN-US_TOPIC_0000001924569384__b0900218181711">Database Port</strong> for access requests from clients or applications.</p>
|
|
<p id="EN-US_TOPIC_0000001924569384__p10928141314713">If you select a custom security group, add an inbound rule to it to enable <strong id="EN-US_TOPIC_0000001924569384__b426010387576">Database Port</strong> for client hosts to access GaussDB(DWS). <a href="#EN-US_TOPIC_0000001924569384__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_0000001924569384__i4561624851">Virtual Private Cloud User Guide</em>.</p>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001924569384__table19508017113430"></a><a name="table19508017113430"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001924569384__table19508017113430" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Inbound rule example</caption><thead align="left"><tr id="EN-US_TOPIC_0000001924569384__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_0000001924569384__p43667920113430"><strong id="EN-US_TOPIC_0000001924569384__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_0000001924569384__p24312498113430"><strong id="EN-US_TOPIC_0000001924569384__en-us_topic_0111441330_b1200428498185923">Example Value</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001924569384__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_0000001924569384__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_0000001924569384__p54729336113430">TCP</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001924569384__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_0000001924569384__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_0000001924569384__p9736197113430">8000</p>
|
|
<div class="note" id="EN-US_TOPIC_0000001924569384__note50434516113430"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="EN-US_TOPIC_0000001924569384__p20516916113430">Enter the value of <span class="parmname" id="EN-US_TOPIC_0000001924569384__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_0000001924569384__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_0000001924569384__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_0000001924569384__p17703505113430">Select <strong id="EN-US_TOPIC_0000001924569384__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_0000001924569384__b1098613187177">192.168.0.10/16</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="EN-US_TOPIC_0000001924569384__li04241449103116"><strong id="EN-US_TOPIC_0000001924569384__b51088291812">EIP</strong>: Select <span class="parmvalue" id="EN-US_TOPIC_0000001924569384__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_0000001924569384__fig746874172719"><span class="figcap"><b>Figure 2 </b>Configuring the network</span><br><span><img id="EN-US_TOPIC_0000001924569384__image1946874132714" src="figure/en-us_image_0000001951848737.png" height="156.093854" width="464.83500000000004" title="Click to enlarge" class="imgResize"></span></div>
|
|
</p></li><li id="EN-US_TOPIC_0000001924569384__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_0000001924569384__b123293559253">default</strong>.</span><p><p id="EN-US_TOPIC_0000001924569384__p237117168171">An enterprise project facilitates project-level management and grouping of cloud resources and users.</p>
|
|
<p id="EN-US_TOPIC_0000001924569384__p43059551051">You can select the default enterprise project <span class="parmvalue" id="EN-US_TOPIC_0000001924569384__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_0000001924569384__i517384915539">Enterprise Management User Guide</em>.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001924569384__li12731024123113"><span>Select <span class="parmname" id="EN-US_TOPIC_0000001924569384__parmname199906301105"><b>Default</b></span> for <strong id="EN-US_TOPIC_0000001924569384__b537753715815">Advanced Settings</strong> in this example.</span><p><ul id="EN-US_TOPIC_0000001924569384__ul5460153173816"><li id="EN-US_TOPIC_0000001924569384__li1446015343814"><strong id="EN-US_TOPIC_0000001924569384__b153054615712">Default</strong>: indicates that the following advanced settings use the default configurations.<ul id="EN-US_TOPIC_0000001924569384__ul1986713232429"><li id="EN-US_TOPIC_0000001924569384__li4252191818248"><strong id="EN-US_TOPIC_0000001924569384__b53419195119">CNs</strong>: Three CNs are deployed by default.</li><li id="EN-US_TOPIC_0000001924569384__li6380852173414"><strong id="EN-US_TOPIC_0000001924569384__b1384220244151">Tag</strong>: By default, no tag is added to the cluster.</li></ul>
|
|
</li><li id="EN-US_TOPIC_0000001924569384__li3460133384"><strong id="EN-US_TOPIC_0000001924569384__b366894713817">Custom</strong>: Select this option to configure advanced parameters <strong id="EN-US_TOPIC_0000001924569384__b066824715815">Automated Snapshot</strong>, <strong id="EN-US_TOPIC_0000001924569384__b116681447589">Tag</strong>, and <strong id="EN-US_TOPIC_0000001924569384__b66681476818">CNs</strong>.</li></ul>
|
|
</p></li><li id="EN-US_TOPIC_0000001924569384__li36258555152115"><span>Click <strong id="EN-US_TOPIC_0000001924569384__b1789818521385">Create Now</strong>. The <strong id="EN-US_TOPIC_0000001924569384__b138986521780">Confirm</strong> page is displayed.</span></li><li id="EN-US_TOPIC_0000001924569384__li47734902152356"><span>Click <strong id="EN-US_TOPIC_0000001924569384__b817385610281">Submit</strong>.</span><p><p id="EN-US_TOPIC_0000001924569384__en-us_topic_0106894662_p4318009414">After the submission is successful, the creation starts. Click <span class="uicontrol" id="EN-US_TOPIC_0000001924569384__uicontrol167661830590"><b>Back to Cluster List</b></span>. The <strong id="EN-US_TOPIC_0000001924569384__b207668300913">Dedicated Clusters<span id="EN-US_TOPIC_0000001924569384__text129867382545"></span></strong> page is displayed. The initial status of the cluster is <span class="parmvalue" id="EN-US_TOPIC_0000001924569384__parmvalue1276614308919"><b>Creating</b></span>. Cluster creation takes some time. Wait for a while. Clusters in the <span class="parmname" id="EN-US_TOPIC_0000001924569384__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> |