Platform · 4 of 4

Load balancing

The five-link proxy chain, drawn at its own scale.

The component chain

A proxy load balancer is not one object. Walk the chain link by link, or click any link, to see what lives there. The two attachment points worth memorising are the target proxy, which holds everything about TLS, and the backend service, which holds everything about health, balancing, the WAF, and the CDN.

Load balancer chainBackend service
  • Your VPC
  • Run by Google
  • Firewall and access rules
  • Allowed traffic
  • Where it breaks
global external Application LB · harbour-apiregional internal Application LB · legacy-apiForwarding rule34.120.95.195:443Target HTTPS proxyconnectionterminatesD15URL maphost + path routingBackend serviceCloud Armor onServerless NEGbridge to Cloud Runharbour-apiCloud RunD6Forwarding rule10.10.0.40:80 ·internalD12Target HTTP proxyno TLS at allURL mapeverything → oneserviceBackend serviceno WAF · TCP checkD13D14legacy-api MIG3–10 VMs,autohealedGoogle health check probes35.191.0.0/16 · 130.211.0.0/22firewall ruleallow-health-checkno probe path tothe serverless NEG

Wide by design - scroll it sideways, or open it on a larger screen.

Backend service

Global external ALB · api-backend-service

link 4 of 5
Health check
none - serverless NEGs are not probed
Balancing mode
n/a for serverless
Session affinity
none - the API is stateless
Connection draining
n/a
Timeout
30s
Cloud Armor
harbour-waf - OWASP preconfigured rules, rate limit 100/min
Cloud CDN
off for the API

Cloud Armor and Cloud CDN both attach here, not to the load balancer as a whole. That is why WAF coverage can differ between two load balancers, and even between two backend services on the same one.

Where to look when something breaks

1

All backends unhealthy, app works fine

Look at Firewall, not the LB

No rule allowing 35.191.0.0/16 and 130.211.0.0/22 on the probe port.

2

Certificate errors

Look at Target proxy

Self-managed cert expired, or the domain is not on the cert.

3

Requests hitting the wrong service

Look at URL map

Host or path matcher order, or a missing default service.

4

WAF rules never fire

Look at Backend service

No policy attached, or traffic is arriving by a path that bypasses the LB entirely.

5

App logs the same client IP for everything

Look at Nothing is broken

Proxy LB, so the app must read X-Forwarded-For instead of the TCP source.

6

Backend serves errors but stays in rotation

Look at Backend service

TCP health check - the port is open, so it passes while the app is broken.