Step 2: Configuring a Load Balancer
To ensure your dedicated WAF instance reliability, after you add a website to it, use HUAWEI CLOUD Elastic Load Balance (ELB) to configure a load balancer and a health check for the dedicated WAF instance.
HUAWEI CLOUD ELB is billed by traffic. For details, see ELB Pricing Details.
Prerequisites
- You have added a website to a dedicated WAF instance.
- You have purchased a load balancer. For details about load balancers, see Differences Between Shared and Dedicated Load Balancers
Constraints
The listening port of the dedicated WAF instance must be the same as that configured in Step 1: Adding a Website to WAF (Dedicated Mode).
Impact on the System
If you select Weighted round robin for Load Balancing Algorithm, disable Sticky Session. If you enable Sticky Session, the same requests will be forwarded to the same dedicated WAF instance. If this instance becomes faulty, an error will occur when the requests come to it next time.
Procedure
- Log in to the management console.
- Click
in the upper left corner of the management console and select a region or project. - Click
in the upper left corner of the page and choose Elastic Load Balance under Network to go to the ELB console. - Click the name of your load balancer in the Name column to go to the Basic Information page.
- Click the Listeners tab, click Add Listener, and configure the listener information. Figure 1 shows an example.
- Click Next and configure the backend server group and health check. Figure 2 and Figure 3 show examples.
- If you select Weighted round robin for Load Balancing Algorithm, disable Sticky Session. If you enable Sticky Session, the same requests will be forwarded to the same dedicated WAF instance. If this instance becomes faulty, an error will occur when the requests come to it next time.
- For details about ELB traffic distribution policies, see Load Balancing Algorithms.
- Set the Port to the port of the website configured in Step 1: Adding a Website to WAF (Dedicated Mode), which is the service port listened by the WAF instance.
- For details about how to configure health check, see Configuring a Health Check.
- Click Finish. After the listener is added successfully, click OK.
- Go to the page of the added listener, select the Backend Server Groups tab, and click Add.
- In the displayed Add Backend Server dialog box, select the dedicated WAF instance created in Buying a Dedicated WAF Instance. Figure 4 shows an example.
- Click Next and configure a port for the dedicated engine. Figure 5 shows an example.
The listening port of the dedicated WAF instance must be the same as that set in Step 1: Adding a Website to WAF (Dedicated Mode). If you configure a standard port for the website, set the HTTP listening port to 80 and HTTPS listening port to 443.
- Click Finish.
Verification
Last Article: Step 1: Adding a Website to WAF (Dedicated Mode)
Next Article: Step 3: Binding an EIP to a Load Balancer





Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.