Associating and Disassociating ELB

Overview

If the internal 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 domain name is used for connection, connection failures can be avoided by polling. However, private domain names cannot be used for public network access, and requests cannot be forwarded in the case of a CN failure. Therefore, ELB is used to avoid single CN failures.

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 Elastic Load Balance User Guide.

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. Currently, ELBs can be bound in the same VPC or across VPCs.

  • This feature is supported only in cluster version 8.1.1.200 or later.
  • For load balancing and high availability purposes, and to prevent single CN failures, a cluster must be bound to ELB.
  • When you bind a cluster to ELB across VPCs, you can bind it to a dedicated load balancer.
  • ELB does not support cross-database access.

Constraints and Limitations

Associating ELB

  1. Log in to the GaussDB(DWS) management console.
  2. Click Clusters. All clusters are displayed by default.
  3. In the cluster list, click the name of the target cluster. The Cluster Information page is displayed.
  4. On the Basic Information page that is displayed, click Associate ELB 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.

  5. After the request is delivered, go back to the Clusters page. Task information Associating ELB of the cluster is displayed. The process takes some time.

  6. Log in to the ELB management console, click the name of the associated ELB, switch to the Backend Server Groups tab, and check whether the cluster CNs are associated with the load balancer.

  1. In the Basic Information area of the Cluster Information page, check the ELB Address, which is used for connecting to the cluster.

Prerequisites for Binding an ELB to a Cluster Across VPCs

Enabling ELB for a cross-VPC backend server

  1. Log in to the ELB console.
  2. In the ELB list, click the name of a dedicated network ELB to go to its details page.

  3. On the Summary page, enable IP as a Backend, confirm the information, and click OK.

  4. Check the VPC and subnet segment.

Connecting the cluster VPC and the ELB VPC (by using VPC peering as an example)

  1. Log in to the GaussDB(DWS) console.
  2. Click Clusters. All clusters are displayed by default.
  3. In the cluster list, click the name of a cluster to go to the cluster details page. Check the VPC and subnet segment of the cluster.

  4. Log in to the VPC management console. choose My VPCs in the navigation pane, and locate the VPC for which you want to create a VPC peering connection.

  5. Choose VPC Peering Connections. In the upper right corner of the page, click Create VPC Peering Connection.

  6. On the displayed page, set Local VPC to the cluster VPC, and set Peer VPC to the VPC of the ELB. Confirm the settings and click OK.

  7. Click Add Route to add the route information.

  8. Click the name of the created VPC peering connection. On the displayed page, click the Local Routes tab, click Route Tables, and add the route table of the cluster VPC.

  9. In the local route table, set Destination to the subnet CIDR block of the ELB VPC, set Next Hop Type to VPC peering connection, and set Next Hop to the created VPC peering connection. Click OK.

  10. Go to the basic information page of the created VPC peering connection, click the Peer Routes tab, click Route Tables, and add the route table of the ELB VPC.

  11. In the peer route table, set Destination to the subnet CIDR block of the cluster VPC, set Next Hop Type to VPC peering connection, and set Next Hop to the created VPC peering connection. Click OK.

  12. After the cluster is created, the network between the VPC where the cluster resides and the VPC where the load balancer resides is connected. For details, see section Binding an ELB.

Disassociating ELB

  1. Log in to the GaussDB(DWS) management console.
  2. Click Clusters. All clusters are displayed by default.
  3. In the cluster list, click the name of the target cluster. The Cluster Information page is displayed.
  4. On the Basic Information page that is displayed, click Disassociate ELB.

  5. After the request is delivered, go back to the Clusters page. Task information Dissociating ELB of the cluster is displayed. The process takes some time.

  6. Log in to the ELB management console, click the name of the dissociated ELB, switch to the Backend Server Groups tab, and check whether the cluster CNs are deleted.