Skip to main content

Add on-premises servers to a primary/secondary server group

Overview

This topic describes how to create a primary/secondary server group and then add on-premises servers to the primary/secondary server group. A primary/secondary server group contains a primary server and a secondary server that can fail over to prevent service interruption. By default, the primary server receives all requests that are distributed by a Server Load Balancer (SLB) instance. When the primary server fails, requests are redirected to the secondary server.

Prerequisites

Applications are deployed on the on-premises servers, and the servers are ready to receive requests.

Procedure

  1. On the Instances page, click the instance.
  2. On the Instances Management page, click the Primary/Secondary Server Groups tab.fg-dc-slb-3.3.11-1
  3. On the Primary/Secondary Server Groups section, click the Create Primary/Secondary Server Group button. fg-dc-slb-3.3.11-2
  4. On the Create Primary/Secondary Server Group section, configure the primary/secondary server group name. fg-dc-slb-3.3.11-3
  5. On the Create Primary/Secondary Server Group section, click the Add On-premises Server button.
  6. On the Select Servers section, click the Add button.
    Note: You can add only two on-premises servers to a primary/secondary server group.fg-dc-slb-3.3.11-4
  7. On the Select Servers section, click the Add button. fg-dc-slb-3.3.11-5
  8. On the Select Servers section, select a virtual private cloud (VPC) from the VPC Connected to IDC drop-down list.
  9. On the Select Servers section, enter a name for the on-premises server that you want to add.
  10. On the Select Servers section, specify the IP address of the server. Note: The on-premises server must use the specified IP address to communicate with the VPC. fg-dc-slb-3.3.11-6
  11. On the Select Servers section, click the Next button.
  12. On the Configure Ports and Weights section, configure the backend port opened on each on-premises server to receive requests.
  13. On the Configure Ports and Weights section, click the Add button. Note: You can set multiple ports for an on-premises server.fg-dc-slb-3.3.11-7
  14. On the Create Primary/Secondary Server Group section, click the Create button. fg-dc-slb-3.3.11-8
  15. On the pop-up message, click the OK button. fg-dc-slb-3.3.11-9