- Documentation
Volcengine Kubernetes Engine
Volcengine Kubernetes Engine
User guide
Networking
Ingress
ALB Ingress
Customize ALB Ingress forwarding rules
Configuring forward traffic throttling
Customize ALB Ingress forwarding rules
Configuring forward traffic throttling
Configuring forward traffic throttling
ALB Ingresses allow you to configure the throttling feature. When requests pass through ALB instances, the ALB instances can perform QoS throttling on specific access requests.
- The alb-ingress-controller add-on has been installed and upgraded to v0.35.0 or later. For details, see Upgrading add-ons.
Configure by using the console
You can configure traffic throttling in an ALB Ingress by using the console. The configuration slightly varies based on whether the ALB Ingress uses a Standard edition ALB instance or a Basic edition ALB instance.
Standard edition ALB
Basic edition ALB
- In the left navigation bar, click Cluster.
- On the cluster list page, click the target cluster for which you need to configure an Ingress.
- In the left navigation bar of the cluster management page, click Services and Ingresses > Ingress. On the page that appears, click Create Ingress.
- Select Application Load Balancer (ALB) for Ingress type.
- In the Forwarding configuration section, select the Enable check box to configure custom forwarding rules.
tip
[Beta - apply for trial]: Configuring traffic throttling for a Basic ALB instance in the console is currently in beta. To use this feature, submit an application. - In the left navigation bar, click Cluster.
- On the cluster list page, click the target cluster for which you need to configure an Ingress.
- In the left navigation bar of the cluster management page, click Services and Ingresses > Ingress. On the page that appears, click Create Ingress.
- Select Application Load Balancer (ALB) for Ingress type.
- In the Forwarding rules section, enable traffic throttling and specify the Requests per second (QPS) parameter.
Configure by using kubectl
ALB Ingresses allow you to configure forward traffic throttling by using annotations. The configuration slightly varies based on whether the ALB Ingress uses a Standard edition ALB instance or a Basic edition ALB instance.
Standard edition ALB
Basic edition ALB
The following content provides sample configurations and annotation descriptions for an ALB Ingress that uses a Standard ALB instance.{service-name}} field in the annotation must match the name of the back-end service configured in spec.rules. For example, in this case, the correct annotation is ingress.vke.volcengine.com/loadbalancer-actions.service-demo.
The following table describes fields in the ingress.vke.volcengine.com/loadbalancer-actions.{{service-name}} annotation.
The following content provides sample configurations and annotation descriptions for an ALB Ingress that uses a Basic ALB instance.
The following table describes fields in the ingress.vke.volcengine.com/loadbalancer-rules-configs annotation.
tip
The details pages of forwarding rules differ between Standard edition ALB instances and Basic edition ALB instances. This topic provides an example of viewing the details page of a forwarding rule for a Standard edition ALB instance.
- Click Instance in the left navigation bar. In the instance list, find the target ALB instance and click Listener in the Actions column.
- On the listener details page, find the target listener. In the Actions column, click Edit forwarding rules to view the existing forwarding rules of the listener. You can view the newly added throttling rule.
- For a forwarding rule, click
to view rule details. The rule details should be consistent with the configured ones.
tip
- Before verification, make sure that you have deployed applications and services in the cluster. In this example, an Nginx image is used and the service path is /. For deployment steps, see Using ALB Ingresses for service deployment.
- You can use multiple tools to validate the throttling feature. This topic takes Apache Bench (ab) as an example for reference purposes only.
- (Optional) Configure the mapping relationship between the domain name and the IP address in your local environment for DNS resolution. In this example, 14.***.***.*** is the public IP address of the ALB instance.
- Run the ab stress test command and set the total number of requests and the concurrency level so that they exceed the throttling threshold. -n indicates the total number of requests, and -c indicates the number of concurrent requests.
- The expected result is as follows: The Requests per second parameter in the test report indicates the actual QPS, which is consistent with the expected value.
Last updated: 2026.07.24 14:51:38