This topic describes how to modify, enable, disable, and delete a listener, and change the server group associated with a listener.
Prerequisites
An Application Load Balancer (ALB) instance is created. For more information, see Create an ALB instance.
A backend server group is created. For more information, see Create and manage a server group.
An HTTP, HTTPS, or QUIC listener is created. For more information, see the following topics:
Modify a listener
- Log on to the ALB console.
In the top navigation bar, select the region where the ALB instance that you want to manage is deployed.
On the Instances page, click the ID of the ALB instance that you want to manage.
Click the Listener tab, find the listener that you want to manage, and then use one of the following methods to modify the basic information about the listener:
Click the ID of the listener. On the Listener Details tab, click Modify Listener in the Basic Information section.
Click View Details in the Actions column. On the Listener Details tab, click Modify Listener in the Basic Information section.
Choose
in the Actions column.
In the Modify Listener dialog box, change the name of the listener or click Modify next to Advanced Settings to modify advanced settings. Then, click Save.
Enable or disable a listener
You can enable or disable a listener based on your business requirements. However, you cannot modify or delete a listener, or change the server group that is associated with a listener when the listener is being configured.
After a listener is disabled, the listener stops forwarding requests. This may cause service interruptions. Proceed with caution.
- Log on to the ALB console.
In the top navigation bar, select the region where the ALB instance that you want to manage is deployed.
On the Instances page, click the ID of the ALB instance that you want to manage.
Click the Listener tab, find the listener that you want to manage and use one of the following methods to enable or disable the listener:
Enable a listener
Choose
in the Actions column. In the message that appears, click OK.NoteIf you want to enable an HTTP listener, click Enable in the Actions column, and click OK in the message that appears.
Click the ID of the listener that you want to enable. In the upper-right corner of the Listener Details tab, click Start.
Disable a listener
Choose
in the Actions column. In the message that appears, click OK.Click the ID of the listener that you want to disable. In the upper-right corner of the Listener Details tab, click Stop.
Delete a listener
- Log on to the ALB console.
In the top navigation bar, select the region where the ALB instance that you want to manage is deployed.
On the Instances page, click the ID of the ALB instance that you want to manage.
Click the Listener tab, find the listener that you want to delete, and then choose in the Actions column.
In the message that appears, click OK.
Associate a listener with another server group
- Log on to the ALB console.
In the top navigation bar, select the region where the ALB instance that you want to manage is deployed.
On the Instances page, click the ID of the ALB instance that you want to manage.
Click the Listener tab, find the listener that you want to manage, and then use one of the following methods to replace the server group that is associated with the listener:
In the Actions column, choose
.Click the ID of the listener. On the Listener Details tab, click Change Server Group (Default Forwarding Rule) in the Server Group (Default Forwarding Rule) section.
In the dialog box that appears, select a server group or click Create Server Group to create a server group. Then, click OK. For more information about how to create a server group, see Create a server group.
Manage Managed Service for OpenTelemetry
Usage notes
Only standard and WAF-enabled ALB instances support Managed Service for OpenTelemetry. Basic ALB instances do not support Managed Service for OpenTelemetry.
After you turn on tracing, Managed Service for OpenTelemetry and Simple Log Service are automatically activated. You are charged for data reports, trace storage, and Simple Log Service. For more information, see Billing overview and Billable items of pay-by-feature.
The following table describes the regions in which Managed Service for OpenTelemetry is supported.
Area
Region
China
China (Hangzhou), China (Shanghai), China (Shenzhen), China (Chengdu), China (Qingdao), China (Beijing), China (Zhangjiakou), China (Ulanqab), China (Hong Kong), China (Guangzhou), and China (Heyuan)
Asia Pacific
Singapore, Malaysia (Kuala Lumpur), Japan (Tokyo), and Indonesia (Jakarta)
Europe and Americas
UK (London), Germany (Frankfurt), US (Virginia), and US (Silicon Valley)
Notes on disabling Managed Service for OpenTelemetry:
After you disable Managed Service for OpenTelemetry for your ALB instance, Simple Log Service remains enabled. If you no long use Simple Log Service, manually disable it.
If you are using Managed Service for OpenTelemetry, disabling Simple Log Service causes service unavailability. Proceed with caution.
After you disable Managed Service for OpenTelemetry for all listeners of your ALB instance, ALB no longer delivers trace data to Managed Service for OpenTelemetry.
Enable Managed Service for OpenTelemetry
- Log on to the ALB console.
In the top navigation bar, select the region where the ALB instance resides.
On the Instances page, click the ID of the ALB instance that you want to manage.
On the Listener tab, click the ID of the listener that you want to manage.
In the Tracing section of the Listener Details tab, turn on Tracing.
In the Enable Tracing dialog box, configure the parameters and click Save. The following table describes the parameters.
Parameter
Description
Activate Service
NoteIf Managed Service for OpenTelemetry is activated in your Alibaba Cloud account, skip this step.
Activate Managed Service for OpenTelemetry
Select the Terms of Service and activate Activate Managed Service for OpenTelemetry.
Create Access Log
NoteIf an access log exists, skip this step.
Project
Select the Simple Log Service project that you want to use to isolate and manage resources.
Select Project: Select an existing project from the drop-down list.
Create Project: Enter a project name in the field.
Logstore
Select the Logstore that you want to use to collect, store, and query log data in Simple Log Service.
Select Logstore: Select an existing Logstore from the drop-down list.
Create Logstore: Enter a Logstore name in the field. If you select Create Project, select Create Logstore.
Configure Tracing
Tracing Type
Select a type of tracing.
The default value is Xtrace, which specifies Managed Service for OpenTelemetry is activated and enables tracing.
Sampling Rate
Valid values: 1 to 100. Default value: 100.
Adjust the sampling rate to specify the number of traces that you want to report.
Notes on Creating Service-linked Role
When you perform this operation, the system automatically creates service-linked roles. ALB assumes the roles to implement features.
Optional. In the Task Enabled dialog box, wait until the status of all tasks changes to Successful, and click Close.
What to do next
Procedure
- Log on to the ALB console.
In the top navigation bar, select the region where the ALB instance resides.
On the Instances page, click the ID of the ALB instance that you want to manage.
On the Listener tab, click the ID of the listener that you want to manage. You can perform the following operations based on your business requirements.
Operation | Procedure |
Modify Managed Service for OpenTelemetry |
|
Disable Managed Service for OpenTelemetry |
|
View traces | In the Tracing section of the Listener Details tab, click View to the right of Trace Analysis to go to the Managed Service for OpenTelemetry console and view traces. For more information, see Analyze traces. |
Manage certificates
Limits
Basic ALB instances do not support mutual authentication.
QUIC listeners do not support mutual authentication.
HTTP listeners do not support one-way authentication or mutual authentication.
Procedure
- Log on to the ALB console.
In the top navigation bar, select the region where the ALB instance is deployed.
On the Instances page, click the ID of the ALB instance that you want to manage.
On the Listener tab, find the listener that you want to manage and click Manage Certificates in the Actions column.
On the Certificates tab, you can perform the following operations based on your business requirements.
NoteWe recommend that you renew your certificate before it expires to prevent adverse impact on your services.
Certificate type
Operation
Procedure
Server certificate
Replace the default server certificate
On the Server Certificates tab, find the default server certificate and click Change in the Actions column.
In the dialog box that appears, select a server certificate and click OK.
If no server certificate is available, click Create SSL Certificate in the drop-down list to go to the Certificate Management Service console. Then, you can purchase or upload a server certificate. For more information, see Purchase an SSL certificate and Upload an SSL certificate.
Add an additional server certificate
You can add an additional server certificate to a listener.
On the Server Certificates tab, click Add EV Certificate.
In the Add Additional Certificate dialog box, select a server certificate and click OK.
If no server certificate is available, you can click Purchase Certificate in the upper-right corner to go to the Certificate Management Service console. Then, you can purchase or upload a server certificate. For more information, see Purchase an SSL certificate and Upload an SSL certificate.
Delete an additional server certificate
You can delete additional server certificates that you no longer use. After an additional server certificate is deleted, it can no longer be used for server authentication.
On the Server Certificates tab, find the server certificate that you want to delete and click Delete in the Actions column.
In the message that appears, click OK.
CA certificate
Enable or disable mutual authentication
Enable mutual authentication: If this is the first time that you enable mutual authentication, perform the following steps:
Click the CA Certificates tab, and turn on Mutual Authentication or click Enable Mutual Authentication.
In the Enable Mutual Authentication dialog box, select Alibaba Cloud as the source of the CA certificate, select a CA certificate from the Default CA Certificate drop-down list, and then click OK.
If no CA certificate is available, click Purchase CA Certificate to create one. For more information, see Purchase and enable a private CA.
Disable mutual authentication: If mutual authentication is enabled for a listener, click the CA Certificates tab and turn off Mutual Authentication. After mutual authentication is disabled, only one-way authentication is supported.
Replace a CA certificate
Click the CA Certificates tab, find the default CA certificate and click Change in the Actions column.
In the Change Default CA Certificate dialog box, select Alibaba Cloud as the source of the CA certificate, select a CA certificate from the Default CA Certificate drop-down list, and then click OK.
If no CA certificate is available, click Purchase CA Certificate to create one. For more information, see Purchase and enable a private CA.
Modify TLS security policies (supported only by HTTPS listeners)
- Log on to the ALB console.
In the top navigation bar, select the region where the ALB instance that you want to manage is deployed.
On the Instances page, click the ID of the ALB instance that you want to manage.
On the Instance Details page, click the Listener tab, find the HTTPS listener that you want to manage, and then click the listener ID or click View Details in the Actions column.
On the Listener Details tab, click the icon on the right side of the TLS Security Policies parameter in the SSL Certificate section.
In the Modify TLS Security Policy dialog box, select a TLS security policy and click Save.
If no TLS security policy is available, click Create TLS Security Policy to create one. For more information, see TLS security policies.
References
UpdateListenerAttribute: updates the configurations of a listener.
StartListener: enables a listener.
StopListener: disables a listener.
DeleteListener: deletes a listener.
AssociateAdditionalCertificatesWithListener: associates additional certificates with an HTTPS or QUIC listener.
DissociateAdditionalCertificatesFromListener: disassociates additional certificates from an HTTPS or QUIC listener.