To associate a listener with an endpoint group, you can specify the region to which you want to distribute network traffic. Then, the system distributes network traffic to the optimal endpoint in the endpoint group.
Prerequisites
Background information
Each endpoint group is associated with a specific region. You can associate an endpoint group with a listener by specifying the region to which you want to distribute network traffic. After you associate an endpoint group with a listener, the system distributes network traffic to the optimal endpoints in the endpoint group.
- TCP or UDP listeners
By default, you can create two default endpoint groups for each TCP or UDP listener. If you want to create more default endpoint groups, go to the Quota Management page and increase the quota of gaplus_quota_epgs_per_listener. For more information, see Manage quotas.
You must deploy default endpoint groups in different regions. You can set a traffic distribution ratio for each default endpoint group. The traffic distribution ratio specifies the proportion of traffic that is distributed to a default endpoint group.
- HTTP or HTTPS listeners
By default, you can create one default endpoint group and one virtual endpoint group for each HTTP or HTTPS listener. If you want to create multiple virtual endpoint groups, go to the Quota Management page and increase the quota of gaplus_quota_vepg_per_listener. For more information, see Manage quotas.
- A default endpoint group refers to the endpoint group that you configure when you create an HTTP or HTTPS listener.
- A virtual endpoint group refers to the endpoint group that you can create on the Endpoint Group page after you create a listener.
After you create a virtual endpoint group for an HTTP or HTTPS listener, you can create a forwarding rule and associate the forwarding rule with the virtual endpoint group. Then, the HTTP or HTTPS listener forwards requests with different destination domain names or paths to the default or virtual endpoint group based on the forwarding rule. This way, you can use one GA instance to accelerate multiple domain names or paths. For more information about how to create a forwarding rule, see Create and manage forwarding rules.
Create a default endpoint group
Create a virtual endpoint group
- You can create a virtual endpoint group only for an HTTP or HTTPS listener.
- Before you can create a virtual endpoint group, you must create a default endpoint group.
What to do next
Operation | Description |
---|---|
Modify an endpoint group |
|
Set the traffic distribution ratio for an endpoint group | You can set the proportion of traffic that is distributed to different endpoint groups.
Note You can set traffic distribution ratios only for TCP and UDP listeners.
|
Set the weight of an endpoint | You can set the weight of an endpoint. The weight specifies the proportion of traffic
that GA distributes to an endpoint in the endpoint group.
GA calculates the sum of all endpoint weights in an endpoint group. Then, traffic is forwarded to endpoints based on the proportions of their weights. For example, if you want to distribute 1/3 of the network traffic to Endpoint 1 and 2/3 of the network traffic to Endpoint 2, you can set the weight of Endpoint 1 to 1 and the weight of Endpoint 2 to 2. To disable GA from distributing network traffic to an endpoint, set the weight of the endpoint to 0.
|
Delete an endpoint group | You can delete an endpoint group that you no longer need. After you delete an endpoint
group, GA stops forwarding requests to the endpoint group.
Note If a listener is associated with only one endpoint group and you delete the endpoint
group, the listener becomes unavailable.
|
Delete an endpoint | You can delete an endpoint that you no longer need. After you delete an endpoint,
GA stops forwarding requests to the endpoint. If an endpoint group contains only one
endpoint, you cannot delete the endpoint.
|
References
- CreateEndpointGroup: You can call this API operation to create an endpoint group.
- CreateEndpointGroups: You can call this API operation to create multiple endpoint groups.
- UpdateEndpointGroup: You can call this API operation to modify an endpoint group.
- DeleteEndpointGroup: You can call this API operation to delete an endpoint group.