You can configure back-to-origin settings to specify the load balancing algorithm for the back-to-origin requests of a website that is added to Anti-DDoS Pro or Anti-DDoS Premium.
A website is added to Anti-DDoS Pro or Anti-DDoS Premium. For more information, see Add a website.
If you configure multiple server addresses when you add the website, your Anti-DDoS Pro or Anti-DDoS Premium instance automatically uses the round-robin algorithm to schedule requests destined for your origin servers. This enables load balancing among the origin servers. The server addresses can be origin IP addresses or origin domain names. You can change the load balancing algorithm for back-to-origin requests or specify weights for the server addresses.
|IP hash||This algorithm is used to forward the requests from the same IP address to the same server address.|
|Round-robin||This algorithm is used to forward requests to all server addresses in sequence. This
is the default algorithm. By default, all server addresses have the same weight.
You can change the weights of server addresses. The higher the weight of the server address, the higher the possibility that back-to-origin requests are forwarded to the server address.
|Least time||The intelligent DNS resolution feature and the least-time algorithm are used to minimize the latency when service traffic is forwarded from your Anti-DDoS Pro or Anti-DDoS Premium instance to origin servers.|
- Log on to the Anti-DDoS Pro console.
- In the top navigation bar, select the region where your instance resides.
You can switch the region to configure and manage Anti-DDoS Pro or Anti-DDoS Premium instances. Make sure that you select the required region when you use Anti-DDoS Pro or Anti-DDoS Premium.
- Anti-DDoS Pro: If your instance is an Anti-DDoS Pro instance, select Chinese Mainland.
- Anti-DDoS Premium: If your instance is an Anti-DDoS Premium instance, select Outside Chinese Mainland.
- In the left-side navigation pane, choose .
- Find the forwarding rule for which you want to modify the back-to-origin settings and click Back to the origin settings in the Actions column.
- In the Back to the origin settings dialog box, configure Load Balancing Algorithm to the origin servers. Valid values: IP hash, Round Robin, and Least time. For more information about algorithm differences, see Algorithm descriptions.
- If you set Load Balancing Algorithm to the origin servers to Round Robin, specify weights for server addresses. If you select another algorithm, skip this
step. A weight must be an integer that ranges from 1 to 100. The higher the weight of the server address, the higher the possibility that back-to-origin requests are forwarded to the server address.
- Click OK. After you configure the back-to-origin settings, the instance schedules requests among multiple server addresses based on the load balancing algorithm that you specified.