Quick start for a basic Global Accelerator instance
A basic Global Accelerator instance provides one-to-one Layer 3 (IP) acceleration from an acceleration region to an origin region. Configure a basic Global Accelerator instance to reduce latency for remote users.
Scenario
A company runs an enterprise application on an Elastic Compute Service (ECS) instance in a Virtual Private Cloud (VPC) in the US (Silicon Valley) region. The ECS instance serves traffic through an elastic IP address (EIP). Employees in the China (Hong Kong) office experience high latency, jitter, and packet loss over the public network.
To resolve this, configure a basic Global Accelerator instance. Traffic from China (Hong Kong) is routed to an accelerated IP address, enters the Alibaba Cloud network locally, and is forwarded to the endpoint in US (Silicon Valley), reducing latency.
Prerequisites
-
A VPC is created in the US (Silicon Valley) region. Create an IPv4 VPC.
-
An ECS instance is created in the VPC. Create an instance by using the custom launch tab.
-
The ECS instance is not associated with a static public IP address or an EIP. If it is, unbind the address first.
-
If the instance has a static public IP address, convert it to an EIP and then unbind it. Convert a static public IP to an EIP.
-
The security group rules for the ECS instance allow access from clients in China (Hong Kong). Security group operations.
This example uses a pay-as-you-go basic Global Accelerator instance to configure the basic Global Accelerator service. Before purchasing a pay-as-you-go basic Global Accelerator instance, note the following:
-
Pay-as-you-go GA instances use Pay-By-Data-Transfer for bandwidth billing. You do not need to associate a bandwidth package. Cloud Data Transfer (CDT) handles traffic billing.
-
The first time you use a pay-as-you-go GA instance, you must Activate Service.
Step 1: Create a basic Global Accelerator instance
Log on to the GA console.
In the left-side navigation pane, click Basic Instance.
On the Basic GA Instance page, click Create Basic Instance.
-
On the Create Basic GA Instance page, configure the instance with the following settings, and then click Create to complete the payment.
Parameter
Description
Billing Method
Select the billing method for the basic Global Accelerator instance.
In this example, select Pay-As-You-Go.
With a pay-as-you-go basic Global Accelerator instance, you are billed for the instance and data transfer.
Bandwidth Billing Method
Select the billing method for bandwidth.
In this example, keep the default value Pay-By-Data-Transfer.
After purchasing a Global Accelerator instance with Pay-By-Data-Transfer, no bandwidth plan is required. Cloud Data Transfer (CDT) settles data transfer fees. Pay-by-data-transfer.
If this is the first time you are creating a Global Accelerator instance with Pay-By-Data-Transfer, accept the CDT service agreement to activate CDT.
Resource Group
Select the resource group for the basic Global Accelerator instance.
The resource group must already exist in Resource Management. Create a Resource Group.
Step 2: Add an acceleration region and IP
Add an acceleration region to specify where your users are located, then add an accelerated IP address for clients to connect to the Alibaba Cloud acceleration network.
On the Basic GA Instance page, find the basic Global Accelerator instance that you want to manage and click its ID.
-
On the instance details page, click the Acceleration Areas tab, and then click Add Acceleration Area.
-
In the Add Acceleration Area dialog box, configure the acceleration region with the following settings, and then click OK.
Parameter
Description
Regions
Select the region to accelerate.
In this example, select China (Hong Kong).
Bandwidth
Specify the bandwidth for the acceleration region, in Mbps.
The valid bandwidth range is 2 to 20,000 Mbps.ImportantSetting the peak bandwidth too low may cause throttling and packet loss. Plan bandwidth based on your business requirements.
Internet Protocol
Select the IP protocol. Only IPv4 is supported.
ISP Line Type
Select the ISP line type.
In this example, select BGP (Multi-ISP).
-
On the Acceleration Areas tab, find the newly added acceleration region and click Add Accelerated IP Address.
-
In the Associate Endpoint dialog box that appears, click Cancel.
The allocated accelerated IP address appears under the acceleration region with a status of Idle.
Step 3: Add an endpoint group and an endpoint
An endpoint group routes traffic to endpoints in a specific region.
-
On the details page of the basic instance, click the Endpoint Group tab, and then click Add Endpoint Group.
-
On the Add Endpoint Group page, configure the endpoint group with the following settings, and then click OK.
Parameter
Description
Endpoint Group
Endpoint Group Name
Enter a name for the endpoint group.
Region
Select the region of the endpoint group.
In this example, select US (Silicon Valley).
Endpoint
Backend Service
Select the backend service type and instance for the endpoint.
In this example, select ECS as the type, and then select the corresponding instance.
NoteECS instances already associated with an EIP or a public IP address cannot be used as endpoints.
Select Node
Select the private IP address of the backend service as the endpoint.
-
In the Private IP Address column, select the target private IP address.
-
In the Node Name (Optional) column, enter a name for the endpoint.
-
In the Accelerated IP Address (optional) column, select the accelerated IP address that you added in Step 2.
-
-
In the Cross-border Acceleration Settings dialog box, read the Compliance Commitments Regarding Cross-border Data Transfers and select Agree to the Preceding Compliance Agreement.
-
Optional: Below the task details list, click View Endpoint Groups.
On the Endpoint Group tab, the added endpoint appears. Its IP Status is Bound.
Step 4: Test the acceleration effect
After configuration, the accelerated IP address serves as the public IP for the backend service. Clients connect through this IP to the Alibaba Cloud network for reduced latency.
-
Open a command-line window on a client in the China (Hong Kong) region.
-
Run the following command to check the packet latency and loss rate.
ping <accelerated-IP-address>