Methods to calculate ALB quotas

更新时间:
复制 MD 格式

ALB quotas define the maximum resource usage for standard ALB instances, backend server groups, listeners, and forwarding rules. Understanding how each quota is calculated lets you predict quota consumption before deployment and avoid hitting limits unexpectedly.

How quotas are calculated

ALB instances use Ingresses to manage and forward external requests. An Ingress defines rules that route requests to backend server groups (Service:port pairs), which distribute traffic to backend pods. Quotas are counted across this routing hierarchy: ALB instance -> Ingresses -> backend server groups -> pods.

image

The examples in the following sections reference this diagram.

Key multiplier rule: When an Ingress is associated with multiple listeners, its forwarding rules, backend pods, and certificates are each counted once per listener.

ALB instance quotas

Additional certificates per ALB instance

Quota ID: alb_quota_loadbalancer_certificates_num_standard_edition

The certificate count for an ALB instance is the sum of additional certificates across all its listeners.

The certificate count for a single Ingress depends on the certificate configuration method:

Configuration methodHow certificates are counted
Automatic certificate discoveryNumber of certificates associated with the domain name in Certificate Management Service
Kubernetes SecretsNumber of Secrets in the secretName field of spec.tls. Secrets across all namespaces are included; Secrets in the same namespace are counted once.
AlbConfig CertificateId fieldNumber of certificates listed in the CertificateId field
Multiple methods combinedDepends on compatibility between the methods used
Multiple listenersCertificates are counted once per associated listener

Scenario example:

IngressListenersCertificate count
ALB Ingress 1HTTP Listener 10 (HTTP requires no certificates)
ALB Ingress 2HTTP Listener 20 (HTTP requires no certificates)
ALB Ingress 3HTTPS Listener 3, HTTPS Listener 4 (1 cert each)2 (1 cert x 2 listeners)

Forwarding rules per ALB instance

Quota ID: alb_quota_loadbalancer_rules_num_standard_edition

The forwarding rule count for an ALB instance is the sum of forwarding rules across all Ingresses on all listeners.

The rule count for a single Ingress equals the number of entries in the path field of host in the spec.rules section of the Ingress configuration. If the Ingress is associated with multiple listeners, its rules are counted once per listener.

Scenario example:

IngressRulesListenersTotal rules counted
ALB Ingress 1111
ALB Ingress 2111
ALB Ingress 3122 (1 rule x 2 listeners)

Backend servers per ALB instance

Quota ID: alb_quota_loadbalancer_servers_num_standard_edition

The backend server count for an ALB instance is the sum of backend pods across all Ingresses on all listeners.

The backend server count for a single Ingress equals the total number of backend pods across all its forwarding rules. If the Ingress is associated with multiple listeners, its pods are counted once per listener.

Scenario example:

IngressPodsListenersTotal servers counted
ALB Ingress 1313
ALB Ingress 2313
ALB Ingress 3224 (2 pods x 2 listeners)

Listeners per ALB instance

Quota ID: alb_quota_loadbalancer_listeners_num_standard_edition

The listener count for an ALB instance equals the number of port:protocol pairs in the Listeners parameter of the AlbConfig. The number of listeners associated with a specific Ingress depends on the value of the alb.ingress.kubernetes.io/listen-ports annotation.

Scenario example:

IngressListener count
ALB Ingress 11
ALB Ingress 21
ALB Ingress 32

Server group quotas

Server groups per backend server

Quota ID: alb_quota_server_added_num

This quota tracks how many ALB server groups a single pod IP address appears in.

If a pod IP is the backend of a Service:port pair that is referenced in multiple forwarding rules, the pod is counted once per forwarding rule. If any of those rules are associated with multiple listeners, the pod is counted once per listener for each rule.

Scenario example:

PodService:port pairsForwarding rulesListenersServer group count
Pod 1Service 1:80, Service 2:801 rule per Service1 per rule2
Pod 2Service 1:80, Service 2:801 rule per Service1 per rule2
Pod 3Service 1:80, Service 2:801 rule per Service1 per rule2
Pod 4Service 3:801 rule2 listeners2
Pod 5Service 3:801 rule2 listeners2

Listener and rule associations per server group

Quota ID: alb_quota_servergroup_attached_num

This quota tracks how many times a server group (Service:port pair) is associated with listeners and forwarding rules.

The count equals the number of forwarding rules that reference the Service:port pair. If a forwarding rule is associated with multiple listeners, the server group is counted once per listener.

Scenario example:

Service:portForwarding rulesListenersAssociation count
Service 1:80111
Service 2:80111
Service 3:80122 (1 rule x 2 listeners)

Backend servers per server group

Quota ID: alb_quota_servergroup_servers_num

The backend server count for a server group (Service:port pair) equals the number of pod:port pairs in that server group.

Scenario example:

Service:portBackend servers
Service 1:803
Service 2:803
Service 3:802

Listener quotas

Network ACLs per listener

The network access control list (ACL) count for a listener equals the number of entries in the non-empty aclConfig fields across all port:protocol pairs in the AlbConfig Listeners parameter.

Scenario example:

ListenerNetwork ACL count
Listener 11
Listener 21
Listener 30
Listener 40

Network ACL entries per listener

The network ACL entry count for a listener equals the total number of entries in the non-empty aclConfig fields across all port:protocol pairs in the AlbConfig Listeners parameter.

Scenario example:

ListenerACL entry count
Listener 1Depends on the number of ACL IDs in the aclId field
Listener 22
Listener 30
Listener 40

Forwarding rule quotas

Actions per forwarding rule

The action count for a forwarding rule depends on the value of the servicePort field:

servicePort valueAction count
use-annotationTotal number of custom actions specified by annotations
Any other valueTotal number of custom annotation actions plus 1

Scenario example: ALB Ingress 1 has one forwarding rule with servicePort set to 80 and no custom annotation actions. The action count is 1.

Match conditions per forwarding rule

Quota ID: alb_quota_rule_matchevaluations_num

Match condition count = non-empty hosts + path conditions + custom annotation conditions

Path conditions are counted as follows based on pathType:

pathType valueConditions per path
Prefix2
Any other value1

Scenario example:

IngressHostsPathsCustom conditionsMatch condition count
ALB Ingress 11113
ALB Ingress 21102
ALB Ingress 31102

Wildcard characters per forwarding rule

The wildcard character count for a forwarding rule equals the total number of wildcard characters used across its actions and match conditions.

Scenario example: ALB Ingress 2 has one forwarding rule with one wildcard character (*) in the host match condition. The wildcard count is 1.

What's next