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>
38 lines
12 KiB
HTML
38 lines
12 KiB
HTML
<a name="EN-US_TOPIC_0000001707254677"></a><a name="EN-US_TOPIC_0000001707254677"></a>
|
|
|
|
<h1 class="topictitle1">Associating and Disassociating ELB</h1>
|
|
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_en-us_topic_0000001083058054_section1201157202712"><h4 class="sectiontitle">Overview</h4><p id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_p1081987164213">If the private IP address or EIP of a CN is used to connect to a cluster, the failure of this CN will lead to cluster connection failure. If a private or public domain name is used for connection, the DNS service randomly selects a private IP address or EIP for each client. This cannot balance loads or avoid single-CN failures. ELB is used to solve these problems.</p>
|
|
<p id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_p653411834218">An ELB distributes access traffic to multiple ECSs for traffic control based on forwarding policies. It improves the fault tolerance capability of application programs. For details, see <em id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_i155562370104">Elastic Load Balance User Guide</em>.</p>
|
|
<p id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_p5807161619337">With ELB health checks, CN requests of a cluster can be quickly forwarded to normal CNs. If a CN is faulty, the workload can be immediately shifted to a healthy node, minimizing cluster access faults. </p>
|
|
<div class="note" id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_en-us_topic_0000001083058054_note536104317508"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_ul1119881111522"><li id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_li31981211105215">This feature is supported only in cluster version 8.1.1.200 or later.</li><li id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_li2870101225213">For load balancing and high availability purposes, and to prevent single CN failures, a cluster must be bound to ELB.</li><li id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_li64481837818">ELB does not support cross-database access.</li></ul>
|
|
</div></div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_en-us_topic_0000001083058054_section881310350358"><h4 class="sectiontitle">Constraints and Limitations</h4><ul id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_en-us_topic_0000001083058054_ul205441726101618"><li id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_li894011442202">To bind an ELB to a GaussDB(DWS) cluster, the ELB must be in the same region, VPC, and enterprise project as the cluster.</li><li id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_li19838208487">Only dedicated load balancers can be bound to GaussDB(DWS).<div class="notice" id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_note13662134115119"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_p6662434165117">Load balancing is not supported in regions where the dedicated load balancer is not available. You can check whether dedicated load balancers are supported on the ELB console.</p>
|
|
<p id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_p155366228200"></p>
|
|
</div></div>
|
|
</li><li id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_li1085914586202">The ELB to be associated must use TCP and has a private IP address.</li><li id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_li127051234182010">When creating an ELB instance, determine its specifications based on your service access traffic. You are advised to select the maximum specifications. On the GaussDB(DWS) console, you can bind to an ELB instance but cannot change its specifications.</li><li id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_en-us_topic_0000001083058054_li122591019498">You only need to create a load balancer if you want to use ELB. GaussDB(DWS) automatically creates the required ELB listeners and backend server groups.</li><li id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_li161583334440">When creating a load balancer, ensure that the listeners do not use the same port as the database. Otherwise, ELB cannot be associated.</li><li id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_li353635565720">When you associate ELB, the <strong id="EN-US_TOPIC_0000001707254677__b1584914247">ROUND_ROBIN</strong> policy is set by default. In addition, the health check interval is set to 10 seconds, the timeout duration is set to 50 seconds, and the number of maximum retries is set to 3. Exercise caution when you modify these ELB parameters.</li><li id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_li5581202854718">When you disassociate ELB from a cluster, related cluster information is cleared on GaussDB(DWS) but the load balancer is not deleted.</li><li id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_li17690125411547">If you need to access the ELB cluster using a public IP address or domain name, bind an EIP or domain name on the ELB management console.</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_section14490205551611"><h4 class="sectiontitle">Associating ELB</h4><ol id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_ol1491555141615"><li id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_en-us_topic_0000001083058054_l3bf4b8bc45d343b6aec0b48be7dfc1aa"><span>Log in to the GaussDB(DWS) management console.</span></li><li id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_li11952509114244"><span>Choose <strong id="EN-US_TOPIC_0000001707254677__b1884648144218">Clusters</strong> > <strong id="EN-US_TOPIC_0000001707254677__b10842482421">Dedicated Cluster</strong>. All clusters are displayed by default.</span></li><li id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_li25916796163327"><span>In the cluster list, click the name of the target cluster. The <span class="parmname" id="EN-US_TOPIC_0000001707254677__parmname1647292284712"><b>Cluster Information</b></span> page is displayed.</span></li><li id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_li75461639163110"><span>On the <strong id="EN-US_TOPIC_0000001707254677__b44832039131314">Basic Information</strong> page that is displayed, click <strong id="EN-US_TOPIC_0000001707254677__b440921519168">Associate ELB</strong> and select the ELB name. If no load balancer exists, create one on the ELB management console. Then refresh the GaussDB(DWS) page and associate ELB with the cluster.</span><p><p id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_p55445452449"></p>
|
|
<p id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_p28221121114014"></p>
|
|
</p></li><li id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_li2031751254010"><span>After the request is delivered, go back to the <strong id="EN-US_TOPIC_0000001707254677__b2485125271118">Clusters</strong> page. Task information <strong id="EN-US_TOPIC_0000001707254677__b648514525115">Associating ELB</strong> of the cluster is displayed. The process takes some time.</span><p><p id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_p128651421114020"><span><img id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_image451180194412" src="figure/en-us_image_0000001758836157.png" title="Click to enlarge" class="imgResize"></span></p>
|
|
</p></li><li id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_li517752243610"><span id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_p542613710534">Log in to the ELB management console, choose <strong id="EN-US_TOPIC_0000001707254677__b10465556175614">Elastic Load Balance </strong>> <strong id="EN-US_TOPIC_0000001707254677__b846614568568">Load Balancers</strong>, click the name of the bound load balancer, switch to the <strong id="EN-US_TOPIC_0000001707254677__b046675617563">Backend Server Groups</strong> tab, and check whether the cluster CNs are associated with the load balancer.</span><p><p id="EN-US_TOPIC_0000001707254677__p542613710534"><span><img id="EN-US_TOPIC_0000001707254677__image5791195310" src="figure/en-us_image_0000001774921465.png" title="Click to enlarge" class="imgResize"></span></p>
|
|
</p></li></ol><ol start="7" id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_ol9406203681011"><li id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_li8407143620109"><span>In the <strong id="EN-US_TOPIC_0000001707254677__b2441495029252">Basic Information</strong> area of the <strong id="EN-US_TOPIC_0000001707254677__b18643194294619">Cluster Information</strong> page, check the <strong id="EN-US_TOPIC_0000001707254677__b6768648839252">ELB Address</strong>, which is used for connecting to the cluster.</span></li></ol>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_section9928171214196"><h4 class="sectiontitle">Disassociating ELB</h4><ol id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_ol199291712161920"><li id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_li1892931216194"><span>Log in to the GaussDB(DWS) management console.</span></li><li id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_li1037613456452"><span>Choose <strong id="EN-US_TOPIC_0000001707254677__b18338347717563">Clusters</strong> > <strong id="EN-US_TOPIC_0000001707254677__b1002805667563">Dedicated Cluster</strong>. All clusters are displayed by default.</span></li><li id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_li1637774510455"><span>In the cluster list, click the name of the target cluster. The <span class="parmname" id="EN-US_TOPIC_0000001707254677__parmname4211611174717"><b>Cluster Information</b></span> page is displayed.</span></li><li id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_li19802810203313"><span>On the <strong id="EN-US_TOPIC_0000001707254677__b03251409198">Basic Information</strong> page that is displayed, click <strong id="EN-US_TOPIC_0000001707254677__b184956204193">Disassociate ELB</strong>.</span></li><li id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_li377715514474"><span>After the request is delivered, go back to the <strong id="EN-US_TOPIC_0000001707254677__b8391114394">Clusters</strong> page. Task information <strong id="EN-US_TOPIC_0000001707254677__b1041112396">Dissociating ELB</strong> of the cluster is displayed. The process takes some time.</span><p><p id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_p2078625114716"><span><img id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_image7786153476" src="figure/en-us_image_0000001711037100.png" title="Click to enlarge" class="imgResize"></span></p>
|
|
</p></li><li id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_li85517864919"><span>Log in to the ELB management console, click the name of the dissociated ELB, switch to the <strong id="EN-US_TOPIC_0000001707254677__b12432284013">Backend Server Groups</strong> tab, and check whether the cluster CNs are deleted.</span><p><p id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_p6132215205514"><span><img id="EN-US_TOPIC_0000001707254677__en-us_topic_0000001372839330_image313018153554" src="figure/en-us_image_0000001711196592.png" title="Click to enlarge" class="imgResize"></span></p>
|
|
</p></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_01_0600.html">Cluster Management</a></div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script language="JavaScript">
|
|
<!--
|
|
image_size('.imgResize');
|
|
var msg_imageMax = "view original image";
|
|
var msg_imageClose = "close";
|
|
//--></script> |