All Products
Search
Document Center

Anti-DDoS:Modify the back-to-origin settings for a website

Last Updated:Feb 22, 2024

If you configure multiple origin 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 origin 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. This topic describes how to configure the load balancing algorithm for back-to-origin traffic.

Prerequisites

A website service is added to Anti-DDoS Pro or Anti-DDoS Premium. For more information, see Add websites.

The following table describes the load balancing algorithms that are supported.

Algorithm

Description

IP hash

This algorithm is used to forward the requests from the same IP address to the same server address.

Round-robin (default)

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.

Procedure

  1. Log on to the Anti-DDoS Pro console.

  2. In the top navigation bar, select the region of your asset.

    • Anti-DDoS Proxy (Chinese Mainland): If your instance is an Anti-DDoS Pro instance, select Chinese Mainland.

    • Anti-DDoS Proxy (Outside Chinese Mainland): If your instance is an Anti-DDoS Premium instance, select Outside Chinese Mainland.

    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.

  3. In the left-side navigation pane, choose Provisioning > Website Config.

  4. Find the domain name that you want to manage and click Back-to-origin Settings in the Actions column. In the dialog box that appears, configure Back-to-origin Scheduling Algorithm and click OK.

    Note

    If you set Load Balancing Algorithm to the origin servers to Round-robin, you can specify Weight for origin server addresses. 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 origin server address.

After you configure the back-to-origin settings, the instance schedules requests among multiple origin server addresses based on the load balancing algorithm that you specified.