Manage endpoints

更新时间:
复制 MD 格式

This lets clients access your cloud resources through the Anycast EIP, improving the public internet access experience.

Background

Supported endpoint types

Endpoint type

Description

Use cases

SLB Instance

  • Distributes inbound traffic to multiple backend ECS instances based on forwarding rules.

  • Only supports inbound internet access.

Ideal for scenarios that require high availability and handle large volumes of traffic. By associating an Anycast EIP with a CLB instance, you can provide more stable and reliable internet-facing services. For more information about CLB, see What is Classic Load Balancer (CLB)?.

ENI

  • Supports bidirectional internet access. Inbound and outbound traffic use the same path.

  • Does not provide traffic distribution or load balancing capabilities.

Suitable for scenarios that require both inbound and outbound internet access.

Note

To associate an Anycast EIP with an Application Load Balancer (ALB) or a Network Load Balancer (NLB), use the SLB console.

Custom forwarding rules for multi-region endpoints

自定义转发规则

An Anycast EIP can be associated with endpoints in multiple regions. You can define rules to route user requests. The following rules apply:

  • When you set a cloud resource as the default endpoint, the system routes requests from access points without a specific mapping to that endpoint.

  • If you do not specify a default endpoint, the first endpoint that you associate becomes the default endpoint. Requests from all access points are routed to this endpoint by default.

  • If you disassociate the default endpoint, the system randomly selects another associated endpoint as the new default.

  • If you associate endpoints from multiple regions, you can create custom mappings between access points and endpoints.

  • Automatic failover is not supported. If an endpoint fails, traffic is not automatically rerouted.

Note

Use an Anycast EIP only for inbound services. If you use an Anycast EIP to initiate outbound connections to third-party services that also use anycast or similar technologies, you may experience connectivity issues.

Prerequisites

  • You have created the backend cloud resources to associate. Supported resources include Classic Load Balancer (CLB) instances in a VPC or elastic network interfaces (ENIs). For more information, see Create a CLB instance or Create and use an elastic network interface.

  • If the endpoint is an elastic network interface, ensure that it is attached to an ECS instance.

Associate a resource

  1. Log on to the Anycast EIP console.
  2. On the Anycast Elastic IP Addresses page, find the Anycast EIP and click Actions in the Manage column.

  3. On the Anycast EIP details page, on the Bound Instances tab, click Associate with Resource.

  4. In the Associate Anycast EIP with Resource dialog box, configure the parameters and click OK.

    Parameter

    Description

    Instance Type

    Select the type of cloud resource.

    • SLB Instance (default)

    • ENI

    Important
    • You can associate an Anycast EIP with only one cloud resource in a region.

    • You can associate an Anycast EIP only with Classic Load Balancer (CLB) instances deployed in a VPC.

    • If you select ENI, the elastic network interface must be attached to an ECS instance and not associated with a public IP address. Otherwise, the association fails.

    Resource Group

    Select the cloud resource's resource group.

    Set as Default

    Determines if the cloud resource is the default endpoint. Requests from unmapped access points are routed to the default endpoint.

    • Yes: Sets this cloud resource as the default endpoint.

    • No: Sets this cloud resource as a regular endpoint.

    Region

    Select the cloud resource's region. This is the endpoint region.

    Supported endpoint regions include China (Hong Kong), Japan (Tokyo), Singapore, US (Silicon Valley), US (Virginia), and Germany (Frankfurt).

    Areas

    Specifies the access points for the endpoint region. This allows you to map access points to an endpoint.

    This parameter is available only when you set Set as Default to No.

    Select an instance to associate

    Select the target resource instance.

More operations

Actions

Description

Modify access areas

If an Anycast EIP is associated with endpoints in multiple regions, you can modify the mapping between access points and endpoints.

  1. On the Bound Instances tab, find the target resource and click Areas in the Actions column.

  2. In the Areas dialog box, modify the mapping between access points and the endpoint, and then click OK.

    • Add access points: In the Access Points, select the access points to add and click 选择增加.

    • Remove access points: In the Selected Access Points list, select the access points to remove and click 选择删除.

Disassociate a resource

If a cloud resource no longer requires public internet access, you can disassociate it from the Anycast EIP. Note that billing for the Anycast EIP continues after the resource is disassociated.

  1. On the Bound Instances tab, find the target resource and click Unbind in the Actions column.

  2. In the confirmation dialog box, review the information and click Yes.

Related documentation