Skip to content

xds: port-alias and TCP-floor clusters share the bare-service EDS name — a later-added one would warm 15 s under delta-ADS dedup (#1008 class) #1013

Closed

Description

@bpalermo

Finding (audit while fixing #1008, PR #1012)

Two other cluster kinds still subscribe to the bare-service EDS resource name that the default service cluster already holds:

  • port alias clusters (agent/internal/xds/cache/cluster.go, buildPortAliasesLocked)
  • TCP floor clusters (agent/internal/xds/cache/capture.go)

Under delta ADS, Envoy's WatchMap deduplicates subscription interest per (type_url, resource name). If either of these is added in a later CDS update than the default cluster (a Service gaining a port after the node already depends on it; a TCPRoute attached after the service is in the dependency set), the new cluster's watch adds nothing to resource_names_subscribe, no EDS arrives, and it warms for the full 15 s initial_fetch_timeout — the #1008 mechanism. Today they usually arrive in the same CDS response as the default cluster, so the first watch's request serves both and nothing is visible; the invariant (docs/runbook.md, "a delta-ADS subscriber must never share a resource name with an already-subscribed sibling") is only accidentally upheld.

Ask

Related: #1008, #1012, #842.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions