All Products
Search
Document Center

ApsaraVideo Live:Global Accelerator

Last Updated:Dec 27, 2023

ApsaraVideo Live allows you to configure the Global Accelerator (GA) settings to accelerate your live streaming service. This topic describes how GA is used in ApsaraVideo Live and how to use different methods to configure GA settings.

Background information

ApsaraVideo Live can take advantage of the acceleration capabilities of GA to accelerate stream ingest and streaming. By leveraging the high-quality BGP bandwidth and global network infrastructure of Alibaba Cloud, GA allows users to connect to the nearest access points for content delivery acceleration. This helps improve user experience during live streaming and reduce network issues, such as network latency, network jitter, and packet loss.

When you use GA in ApsaraVideo Live, ApsaraVideo Live creates pay-as-you-go GA instances, automatically configures the acceleration regions and listeners for the instances, and automatically binds the instances to acceleration circuits. After you configure GA settings in the ApsaraVideo Live console, live streaming in the corresponding regions is accelerated by GA. This also helps improve the live streaming quality.

Prerequisites

Scenarios

  • Improve the live streaming quality

    If your live streaming service has high requirements on quality, you can use GA in ApsaraVideo Live to reduce network issues during live streaming, such as network latency, network jitter, and packet loss. This helps improve the live streaming quality.

  • Use cross-border acceleration

    If your live streaming service requires cross-border acceleration, you can use GA in ApsaraVideo Live to create cross-border acceleration circuits. This allows users to connect to the nearest access points around the world and reduces the transmission latency.

Limits

Limits on sub-streaming domains

You can configure GA settings only for main streaming domains, but not for sub-streaming domains.

Limits on RAM users

By default, RAM users cannot create GA resources or access or manage GA resources within their corresponding Alibaba Cloud accounts. If you want a RAM user to be able to access or manage GA resources, you must attach the following policies to the RAM user:

Policy type

Policy

Authorized operation

System policy

  • AliyunGlobalAccelerationFullAccess: grants the RAM user full permissions on GA.

  • AliyunCDTFullAccess: grants the RAM user full permissions on Cloud Data Transfer (CDT).

For more information about how to grant permissions to a RAM user, see Create and grant permissions to a RAM user.

Custom policy

Policy that grants the RAM user the CreateServiceLinkedRole permission. This permission is used to create service-linked roles (SLRs).

For more information about how to configure such a custom policy, see the Configure a custom policy that grants the CreateServiceLinkedRole permission section in this topic.

Configure a custom policy that grants the CreateServiceLinkedRole permission

To allow a RAM user to access or manage GA resources, make sure that the RAM user has the CreateServiceLinkedRole permission or your temporary access credentials obtained from Security Token Service (STS) include the CreateServiceLinkedRole permission.

If the error message "You do not have the ram:CreateServiceLinkedRole permission." is returned, you need to attach a custom policy to the RAM user by using your Alibaba Cloud account or as a permission administrator.

The following information describes the custom policy that you need to attach: Service Name: gaaccess.live.aliyuncs.com, Action:ram:CreateServiceLinkedRole.

  1. Log on to the RAM console with an Alibaba Cloud account or a RAM user who has administrative rights.

  2. In the left-side navigation pane, choose Permissions > Policies.

  3. On the Policies page, click Create Policy.

  4. On the Create Policy page, click the JSON tab.

  5. Copy the following content to the script editor, click Next to edit policy information, specify a name for the custom policy, such as createSLRForLiveGA, and then click OK.

    {
      "Version": "1",
      "Statement": [
        {
          "Effect": "Allow",
          "Action": "ram:CreateServiceLinkedRole",
          "Resource": "*",
          "Condition": {
            "StringEquals":{
              "ram:ServiceName":[
                "gaaccess.live.aliyuncs.com"
              ]      
            }
          }
        }
      ]
    }
  6. In the left-side navigation pane, choose Identities > Users.

  7. Attach the custom policy that was created to the RAM user.

    image.png

Billing

GA instances that are created in ApsaraVideo Live are pay-as-you-go standard GA instances. You are charged instance fees, capacity unit (CU) fees, and traffic fees when you use these GA instances. The bills are generated under the GA service.

Billable item

Description

References

Instance fee and CU fee

ApsaraVideo Live creates pay-as-you-go standard GA instances for you. Fees of a standard GA instance include instance fee and CU fee.

Billing of pay-as-you-go GA instances

Traffic fee

Traffic fees that are generated when you access GA are billed by CDT.

Pay-by-data-transfer

Acceleration areas and regions

Note
  • The regions in the following table are for reference only. You can view the actual regions that are supported by GA instances in the GA console. For more information, see Overview.

  • By default, the following acceleration regions are unavailable: China (Heyuan), China (Nanjing), Brazil (Sao Paulo), Thailand (Bangkok), Vietnam (Ho Chi Minh), and UAE (Dubai). To use these acceleration regions, go to the Quota Center console, find the quota named Accelerated regional whitelist, and then click Apply in the Actions column. For more information, see Request a quota increase.

The following table lists the acceleration areas and regions that are supported by pay-as-you-go GA instances.

Acceleration area

Region

North China

China (Qingdao) and China (Beijing)

South China

China (Shenzhen) and China (Guangzhou)

East China

China (Hangzhou) and China (Shanghai)

Southwest China

China (Chengdu)

North America

US (Silicon Valley) and US (Virginia)

Asia Pacific

China (Hong Kong), South Korea (Seoul), Singapore, Malaysia (Kuala Lumpur), Japan (Tokyo), Indonesia (Jakarta), India (Mumbai), Philippines (Manila), Thailand (Bangkok), and Vietnam (Ho Chi Minh)

Europe

Germany (Frankfurt) and UK (London)

Methods to configure GA settings

ApsaraVideo Live allows you to configure GA settings by using the following methods:

  • Use the ApsaraVideo Live console

    You can configure GA settings in the ApsaraVideo Live console. For more information, see Configure GA settings.

  • Call API operations

    You can call API operations to configure GA settings for ApsaraVideo Live. For more information, see Global Accelerator.