You can create a GWLB instance to receive traffic requests from clients and distribute the requests to backend servers. This topic describes how to create and manage GWLB instances.
Prerequisites
You have created a Virtual Private Cloud (VPC). For more information, see Create an IPv4 VPC.
The AliyunServiceRoleForGwlb service-linked role exists in your account. When you create a Gateway Load Balancer instance for the first time, you are prompted to create this service-linked role. This role allows Gateway Load Balancer to access other Alibaba Cloud services and resources on your behalf. For more information, see System permission policies for Gateway Load Balancer.
Create a GWLB instance
Log on to the Gateway Load Balancer console.
In the top navigation bar, select the region where you want to create the GWLB instance.
On the Instances page, click Create GWLB.
On the Gateway Load Balancer buy page, configure the following parameters.
Parameter
Description
Region and zone
Select the region for the instance.
VPC
Select the VPC for the instance.
Zone
Select the zone for the instance. Gateway Load Balancer supports multi-zone deployment. You must specify at least one zone and a corresponding vSwitch. After you create the GWLB instance, you cannot remove the selected zones and vSwitches.
IP Version
Select the IP version for the instance.
IPv4: The GWLB instance accepts IPv4 traffic.
Instance Name
Enter a name for the instance.
Resource group
Select a resource group for the GWLB instance.
Tags
Set the Tag Key and Tag Value for the instance.
You can add multiple tags to an instance.
Service-linked role
The first time you create a Gateway Load Balancer instance, you must click Create Service-linked Role to create a service-linked role named AliyunServiceRoleForGwlb.
NoteThis parameter appears only when you create a GWLB instance for the first time.
Click Buy Now and follow the on-screen instructions to complete the process.
Return to the Instances page and select the region to view the new instance.
Release a GWLB instance
You can release instances that you no longer need to avoid unnecessary charges. After you release an instance, you are no longer billed for it.
Releasing a GWLB instance deletes its configurations and data, which cannot be recovered.
You cannot release a GWLB instance that is in use. For example, if an endpoint service is associated with the GWLB instance, you must first disassociate them before you can release the GWLB instance.
Log on to the Gateway Load Balancer console.
In the top navigation bar, select the region where you want to create the GWLB instance.
On the GWLB Instances page, find the target instance, click
in the Actions column, and select Release.In the Confirm dialog box, click Release.
More operations
Actions | Procedure |
Rename a GWLB instance |
|
Manage the zones of a GWLB instance |
Note You can only add zones to a GWLB instance. You cannot edit or delete existing zones. |
Manage tags | Each tag consists of a key-value pair.
Add tags You can use tags to classify instances, for example, by purpose or owner.
Filter by tag You can filter instances by tag to view their information.
|
Release GWLB instances in bulk |
|
Next steps
After you create a GWLB instance, you must configure a listener to forward traffic from all ports to a backend server group over the Geneve protocol. For more information, see Add and manage IP listeners.
You must use a GWLB instance with an endpoint service created using PrivateLink.
Related documents
Overview:
To learn about the use cases and components of Gateway Load Balancer, see What is Gateway Load Balancer?.
To learn about the features of Gateway Load Balancer, see Features.
To find regions and zones that support Gateway Load Balancer, see Regions and zones that support GWLB.
API reference: