All Products
Search
Document Center

ApsaraVideo VOD:Configure origin server priority

Last Updated:Jan 26, 2026

This topic describes how to configure origin server priority and the billing methods for different types of origin servers.

Prerequisites

You must configure at least two origin servers. For more information, see HOST header.

Background information

  • Alibaba Cloud CDN supports three types of origin servers: Object Storage Service (OSS) domain names, IP addresses, and custom domain names.

  • When you set the origin server type to IP or Custom Domain Name, you can add multiple origin servers and set their priorities. The Primary server has a higher priority than the Secondary server.

  • Back-to-origin traffic is first directed to the origin server with the highest priority. If an origin server fails its health check three consecutive times, all traffic is redirected to the server with the next highest priority. If the failed origin server later passes a health check, it is marked as available and its original priority is restored. If all origin servers have the same priority, CDN uses polling to route requests.

  • Active Layer 4 health checks are performed on origin servers every 2.5 seconds.

Note
  • You can select an origin server type and set a priority as needed. Live streaming acceleration does not support origin server settings.

  • When multiple primary or secondary origin servers are configured, requests are randomly distributed among them with equal probability. For example, if three primary origin servers are configured, each server receives 30 requests out of a total of 90.

Procedure

  1. Log on to the ApsaraVideo VOD console.

  2. In the navigation pane on the left, choose Configuration Management.

  3. Click CDN Configuration  >  Domain Names to go to the Domain Names page.

  4. Find the domain name that you want to configure and click Configure.

  5. Click Basic Configuration . In the Source Station Information section, click Modify.

  6. Set the origin server type, origin server address, and port.

    You can set a custom port after the IP addresses of the origin servers are added to the whitelist. The port number can range from 0 to 65535.

    • If you set the static or dynamic protocol to Adopt, you cannot set a custom port.

    • If you use OpenAPI to set the origin protocol policy to Adopt, ensure that both the origin protocol and the custom port function correctly.

    • If you set an origin protocol such as HTTP or HTTPS and a custom port, back-to-origin requests use the custom port, regardless of other port settings in the console.

    Origin Information

    Billing Method

    IP or Origin Domain Name

    You are charged for internet traffic.

    OSS Domain Name

    This is billed at internal network prices. For more information, see OSS pricing details.

    The Origin Domain Name is set to an OSS domain name.

    You are charged for internet traffic.

  7. Click OK.