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.
Prerequisites
A website is added to Anti-DDoS Pro or Anti-DDoS Premium. For more information, see Add a website.
Background information
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.
Algorithm | Description |
---|---|
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. |