D13Defect 13 of 17, in the order they close

TCP health check on a web backend

legacy-backend-service probes TCP on port 80.

Severity
medium
Closes in
phase 5, Egress and load balancer
Closed by
HTTP health checks
Breaks
1 journey
  • Your VPC
  • Run by Google
  • Firewall and access rules
  • Allowed traffic
  • Where it breaks
Health check probes35.191.0.0/16130.211.0.0/22harbour-vpc · sn-a-app · 10.10.0.0/20allow-health-checkfirewall · ingressto lb-health-checklegacy-api · managed instance groupprobe: is TCP :80 open?the autohealer uses the same checkD13instance aanswers requestsTCP :80 → openstays in rotationinstance b · hung500 to every requestTCP :80 → openstays in rotationpasses

Only what D13 touches. Red is the defect and what it lets through; switch to fixed to see the same parts with only D13 closed. Struck IDs are closed.

As foundhealth check: TCP, port 80. Proves only that something is listening.

Wide by design - scroll it sideways.

Notes

open one at a time

1.

What it can cause

A hung instance keeps its share of requests and fails every one of them.
  • A hung instance keeps its share of requests and fails every one of them.
  • The autohealer trusts the same check, so the broken instance is never replaced. Someone has to notice and delete it by hand.
  • The errors look like a bad deploy, so the search starts in the wrong place.
2.

Why it is wrong

A health check proves only what it actually tests. TCP proves a port is open, not that the application works - and the autohealer trusts the same check.

A hung application that still holds the port open passes the check, keeps receiving traffic, and is never replaced by the autohealer - because the MIG uses the same check. One weak setting breaks both rotation and healing.

The idea

A health check proves only what it actually tests. TCP proves a port is open, not that the application works - and the autohealer trusts the same check.

3.

How you would find it

gcloud compute backend-services describe legacy-backend-service --region=asia-southeast1 --format="value(healthChecks)"
detect
gcloud compute backend-services describe legacy-backend-service \  --region=asia-southeast1 --format="value(healthChecks)" gcloud compute health-checks list \  --format="table(name,type,tcpHealthCheck.port,httpHealthCheck.requestPath)"
4.

The change that closes it

health check: HTTP, GET /health, 200 expected. Proves the app is actually responding.
As found
health check: TCP, port 80. Proves only that something is listening.
Fixed
health check: HTTP, GET /health, 200 expected. Proves the app is actually responding.
fix
gcloud compute health-checks create http legacy-http-hc \  --port=80 --request-path=/health \  --check-interval=10s --timeout=5s \  --healthy-threshold=2 --unhealthy-threshold=3 gcloud compute backend-services update legacy-backend-service \  --region=asia-southeast1 --health-checks=legacy-http-hc
5.

When to fix it

Phase 5, Egress and load balancer - after D12

Phase 5, Egress and load balancer, together with D7, D9, D14 and D15. The egress deny needs every external destination enumerated first, which you only know once the NAT path is proven.

Cannot start until

  • D12No proxy-only subnet · phase 1

Unblocks

Nothing waits on it.

6.

Journeys it breaks

A health check probe arrives