forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
61 lines
16 KiB
HTML
61 lines
16 KiB
HTML
<a name="EN-US_TOPIC_0000001134400820"></a><a name="EN-US_TOPIC_0000001134400820"></a>
|
|
|
|
<h1 class="topictitle1">Step 2: Creating a Cluster</h1>
|
|
<div id="body1488272827608"><p id="EN-US_TOPIC_0000001134400820__p291616474813">Before using GaussDB(DWS) to analyze data, create a cluster. A cluster consists of multiple nodes in the same subnet. These nodes together provide services. This section describes how to create a GaussDB(DWS) cluster.</p>
|
|
<div class="section" id="EN-US_TOPIC_0000001134400820__section104149431131"><h4 class="sectiontitle">Creating a Cluster</h4><ol id="EN-US_TOPIC_0000001134400820__ol1649726614233"><li id="EN-US_TOPIC_0000001134400820__li6029015714233"><span>Log in to the GaussDB(DWS) management console.</span></li><li id="EN-US_TOPIC_0000001134400820__li226234352"><span>Choose <span class="uicontrol" id="EN-US_TOPIC_0000001134400820__uicontrol1743558195311"><b>Clusters</b></span> in the navigation pane on the left.</span></li><li id="EN-US_TOPIC_0000001134400820__li63277252161245"><span>On the <span class="wintitle" id="EN-US_TOPIC_0000001134400820__wintitle174201315530"><b>Clusters</b></span> page, click <strong id="EN-US_TOPIC_0000001134400820__b2773104918208">Create Cluster</strong> in the upper right corner.</span></li><li id="EN-US_TOPIC_0000001134400820__li1422605291313"><span>Select the region to which the cluster to be created belongs.</span><p><ul id="EN-US_TOPIC_0000001134400820__ul2673243141713"><li id="EN-US_TOPIC_0000001134400820__li0591886205"><strong id="EN-US_TOPIC_0000001134400820__b9652420192017">Region</strong>: Select the current working area of the cluster.</li><li id="EN-US_TOPIC_0000001134400820__li768864321715"><strong id="EN-US_TOPIC_0000001134400820__b8587164614190">AZ</strong>: Retain the default value.</li></ul>
|
|
</p></li><li id="EN-US_TOPIC_0000001134400820__li3509811181412"><span>Configure node parameters.</span><p><ul id="EN-US_TOPIC_0000001134400820__ul3617182404112"><li id="EN-US_TOPIC_0000001134400820__li125151717114915"><strong id="EN-US_TOPIC_0000001134400820__b34841625102618">Cluster Type</strong>: For example, <span class="parmname" id="EN-US_TOPIC_0000001134400820__parmname164871525192617"><b>Standard</b></span>.</li><li id="EN-US_TOPIC_0000001134400820__li12608533142115"><strong id="EN-US_TOPIC_0000001134400820__b106646351267">CPU Architecture</strong>: Select a CPU architecture based on your requirements, for example, <strong id="EN-US_TOPIC_0000001134400820__b14664183511265">x86</strong>.</li><li id="EN-US_TOPIC_0000001134400820__li174125558519"><strong id="EN-US_TOPIC_0000001134400820__b108993477207">Node Flavor</strong>: Retain the default value.</li><li id="EN-US_TOPIC_0000001134400820__li1363312424111"><strong id="EN-US_TOPIC_0000001134400820__b18633253159">Nodes</strong>: Retain the default value. At least <strong id="EN-US_TOPIC_0000001134400820__b122512111846">3</strong> nodes are required.</li></ul>
|
|
<div class="fignone" id="EN-US_TOPIC_0000001134400820__fig1236785221310"><span class="figcap"><b>Figure 1 </b>Configuring node parameters</span><br><span><img id="EN-US_TOPIC_0000001134400820__image6966015171415" src="figure/en-us_image_0000001180320497.png" height="123.22915499999999" width="459.8475" title="Click to enlarge" class="imgResize"></span></div>
|
|
</p></li><li id="EN-US_TOPIC_0000001134400820__li250803614263"><span>Configure cluster parameters.</span><p><ul id="EN-US_TOPIC_0000001134400820__ul132177543292"><li id="EN-US_TOPIC_0000001134400820__li721765419298"><strong id="EN-US_TOPIC_0000001134400820__b16036229252">Cluster Name</strong>: Enter <strong id="EN-US_TOPIC_0000001134400820__b34153269254">dws-demo</strong>.</li><li id="EN-US_TOPIC_0000001134400820__li132295612719"><strong id="EN-US_TOPIC_0000001134400820__b982211416481">Cluster Version</strong>: The current cluster version is displayed and cannot be changed.</li><li id="EN-US_TOPIC_0000001134400820__li132331754192915"><strong id="EN-US_TOPIC_0000001134400820__b9837143942513">Default Database</strong>: The value is <strong id="EN-US_TOPIC_0000001134400820__b136722023419"><span id="EN-US_TOPIC_0000001134400820__text1287103795414">gaussdb</span></strong>, which cannot be changed.</li><li id="EN-US_TOPIC_0000001134400820__li1224918542292"><strong id="EN-US_TOPIC_0000001134400820__b79781929142612">Administrator Account</strong>: The default value is <strong id="EN-US_TOPIC_0000001134400820__b12853163612269">dbadmin</strong>. Use the default value. After a cluster is created, the client uses this account and its password to connect to the cluster's database.</li><li id="EN-US_TOPIC_0000001134400820__li12249954192911"><strong id="EN-US_TOPIC_0000001134400820__b46931626115914">Administrator Password</strong>: Enter the password.</li><li id="EN-US_TOPIC_0000001134400820__li326314541299"><strong id="EN-US_TOPIC_0000001134400820__b377523253011">Confirm Password</strong>: Enter the password again.</li><li id="EN-US_TOPIC_0000001134400820__li12263154172918"><strong id="EN-US_TOPIC_0000001134400820__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_0000001134400820__fig8713143792811"><span class="figcap"><b>Figure 2 </b>Configuring the cluster</span><br><span><img id="EN-US_TOPIC_0000001134400820__image164010498163" src="figure/en-us_image_0000001134401058.png" width="465.5" height="321.034469" title="Click to enlarge" class="imgResize"></span></div>
|
|
</p></li><li id="EN-US_TOPIC_0000001134400820__li123915537131"><span>Configure network parameters.</span><p><ul id="EN-US_TOPIC_0000001134400820__ul12330104953110"><li id="EN-US_TOPIC_0000001134400820__li12345144913118"><strong id="EN-US_TOPIC_0000001134400820__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_0000001134400820__b55104218233">View VPC</strong> to enter the VPC management console to create one, for example, <strong id="EN-US_TOPIC_0000001134400820__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_0000001134400820__image0584421174519" src="figure/en-us_image_0000001180320487.png"></span> next to the <span class="parmname" id="EN-US_TOPIC_0000001134400820__parmname18621165214224"><b>VPC</b></span> drop-down list, and select the new VPC.</li><li id="EN-US_TOPIC_0000001134400820__li936111493311"><strong id="EN-US_TOPIC_0000001134400820__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_0000001134400820__li5378124919315"><strong id="EN-US_TOPIC_0000001134400820__b1067772324620">Security Group</strong>: Select <span class="parmvalue" id="EN-US_TOPIC_0000001134400820__parmvalue85217455468"><b>Automatic creation</b></span>.<p id="EN-US_TOPIC_0000001134400820__p1439310499315">The automatically created security group is named <strong id="EN-US_TOPIC_0000001134400820__b5899171819170">GaussDB(DWS)</strong>-<<em id="EN-US_TOPIC_0000001134400820__i139006183174">Cluster name</em>>-<<em id="EN-US_TOPIC_0000001134400820__i129001318121712">GaussDB(DWS) cluster database port</em>>. The outbound allows all access requests, while the inbound enables only <strong id="EN-US_TOPIC_0000001134400820__b0900218181711">Database Port</strong> for access requests from clients or applications.</p>
|
|
<p id="EN-US_TOPIC_0000001134400820__p10928141314713">If you select a custom security group, add an inbound rule to it to enable <strong id="EN-US_TOPIC_0000001134400820__b426010387576">Database Port</strong> for client hosts to access GaussDB(DWS). <a href="#EN-US_TOPIC_0000001134400820__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_0000001134400820__i4561624851">Virtual Private Cloud User Guide</em>.</p>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001134400820__table19508017113430"></a><a name="table19508017113430"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001134400820__table19508017113430" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Inbound rule example</caption><thead align="left"><tr id="EN-US_TOPIC_0000001134400820__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_0000001134400820__p43667920113430"><strong id="EN-US_TOPIC_0000001134400820__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_0000001134400820__p24312498113430"><strong id="EN-US_TOPIC_0000001134400820__en-us_topic_0111441330_b1200428498185923">Example Value</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001134400820__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_0000001134400820__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_0000001134400820__p54729336113430">TCP</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001134400820__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_0000001134400820__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_0000001134400820__p9736197113430">8000</p>
|
|
<div class="note" id="EN-US_TOPIC_0000001134400820__note50434516113430"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="EN-US_TOPIC_0000001134400820__p20516916113430">Enter the value of <span class="parmname" id="EN-US_TOPIC_0000001134400820__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_0000001134400820__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_0000001134400820__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_0000001134400820__p17703505113430">Select <strong id="EN-US_TOPIC_0000001134400820__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_0000001134400820__b1098613187177">192.168.0.10/16</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="EN-US_TOPIC_0000001134400820__li04241449103116"><strong id="EN-US_TOPIC_0000001134400820__b51088291812">EIP</strong>: Select <span class="parmvalue" id="EN-US_TOPIC_0000001134400820__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_0000001134400820__fig746874172719"><span class="figcap"><b>Figure 3 </b>Configuring the network</span><br><span><img id="EN-US_TOPIC_0000001134400820__image1946874132714" src="figure/en-us_image_0000001134560836.png" height="156.093854" width="464.83500000000004" title="Click to enlarge" class="imgResize"></span></div>
|
|
</p></li><li id="EN-US_TOPIC_0000001134400820__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_0000001134400820__b123293559253">default</strong>.</span><p><p id="EN-US_TOPIC_0000001134400820__p237117168171">An enterprise project facilitates project-level management and grouping of cloud resources and users.</p>
|
|
<p id="EN-US_TOPIC_0000001134400820__p149417121983">You can select the default enterprise project (<span class="parmvalue" id="EN-US_TOPIC_0000001134400820__parmvalue13693123317274"><b>default</b></span>) or other existing enterprise projects. To create an enterprise project, log in to the Enterprise Management console. For details, see the <em id="EN-US_TOPIC_0000001134400820__i193180207287">Enterprise Management User Guide</em>.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001134400820__li12731024123113"><span>Select <span class="parmname" id="EN-US_TOPIC_0000001134400820__parmname199906301105"><b>Default</b></span> for <strong id="EN-US_TOPIC_0000001134400820__b537753715815">Advanced Settings</strong> in this example.</span><p><ul id="EN-US_TOPIC_0000001134400820__ul5460153173816"><li id="EN-US_TOPIC_0000001134400820__li1446015343814"><strong id="EN-US_TOPIC_0000001134400820__b153054615712">Default</strong>: indicates that the following advanced settings use the default configurations.<ul id="EN-US_TOPIC_0000001134400820__ul1986713232429"><li id="EN-US_TOPIC_0000001134400820__li1720613145311"><strong id="EN-US_TOPIC_0000001134400820__b770594219579">Automated Snapshot</strong>: By default, the policy for automatically creating cluster snapshots is enabled.</li><li id="EN-US_TOPIC_0000001134400820__li4252191818248"><strong id="EN-US_TOPIC_0000001134400820__b1527715250365">CNs</strong>: Three CNs are deployed by default.</li><li id="EN-US_TOPIC_0000001134400820__li830142017172"><strong id="EN-US_TOPIC_0000001134400820__b1460604119344">Parameter Template</strong>: The default database parameter template is associated with the cluster.</li><li id="EN-US_TOPIC_0000001134400820__li6380852173414"><strong id="EN-US_TOPIC_0000001134400820__b1384220244151">Tag</strong>: By default, no tag is added to the cluster.</li></ul>
|
|
</li><li id="EN-US_TOPIC_0000001134400820__li3460133384"><strong id="EN-US_TOPIC_0000001134400820__b1944710225020">Custom</strong>: Select this option to configure the following advanced parameters: <strong id="EN-US_TOPIC_0000001134400820__b19998759125214">Automated Snapshot</strong>, <strong id="EN-US_TOPIC_0000001134400820__b199825917526">CNs</strong>, <strong id="EN-US_TOPIC_0000001134400820__b4243121219261">Parameter Template</strong>, <strong id="EN-US_TOPIC_0000001134400820__b127981427105317">Tag</strong></li></ul>
|
|
</p></li><li id="EN-US_TOPIC_0000001134400820__li36258555152115"><span>Click <strong id="EN-US_TOPIC_0000001134400820__b742032741412">Create Now</strong>. The <strong id="EN-US_TOPIC_0000001134400820__b629483015144">Confirm</strong> page is displayed.</span></li><li id="EN-US_TOPIC_0000001134400820__li47734902152356"><span>Click <strong id="EN-US_TOPIC_0000001134400820__b817385610281">Submit</strong>.</span><p><p id="EN-US_TOPIC_0000001134400820__en-us_topic_0106894662_p4318009414">After the submission is successful, the creation starts. Click <span class="uicontrol" id="EN-US_TOPIC_0000001134400820__uicontrol69391146151"><b>Back to Cluster List</b></span>. The <strong id="EN-US_TOPIC_0000001134400820__b294614181515">Clusters</strong> page is displayed. The initial status of the cluster is <span class="parmvalue" id="EN-US_TOPIC_0000001134400820__parmvalue169465410159"><b>Creating</b></span>. Cluster creation takes some time. Wait for a while. Clusters in the <span class="parmname" id="EN-US_TOPIC_0000001134400820__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> |