Skip to content

Conversation

@codefromthecrypt
Copy link
Contributor

What this PR does / why we need it:

The topology injector adds an EDS local_cluster to the bootstrap config for zone-aware routing. In standalone/host mode, this cluster waits for endpoint discovery that never completes, causing a 15-30 second delay before Envoy reports as ready.

This change always disables the topology injector in host infrastructure mode since zone-aware routing is only relevant in Kubernetes deployments.

lsof -ti tcp:1066,1067,8080,9901,1061,1975 | xargs -r kill -9 ; rm -rf /tmp/envoy-gateway/certs; OPENAI_BASE_URL=http://localhost:11434/v1 OPENAI_API_KEY=unused out/aigw-darwin-arm64 run --mcp-json '{
>   "mcpServers": {
>     "kiwi": {
>       "type": "http",
>       "url": "https://mcp.kiwi.com"
>     }
>   }
> }'

Envoy AI Gateway listening on http://localhost:1975 (admin http://localhost:56664) after 2.8s

Which issue(s) this PR fixes:

Fixes #7080

The topology injector adds an EDS local_cluster to the bootstrap config
for zone-aware routing. In standalone/host mode, this cluster waits for
endpoint discovery that never completes, causing a 15-30 second delay
before Envoy reports as ready.

This change always disables the topology injector in host infrastructure
mode since zone-aware routing is only relevant in Kubernetes deployments.

Fixes envoyproxy#7080

Signed-off-by: Adrian Cole <adrian@tetrate.io>
Copy link
Contributor

@arkodg arkodg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for digging into this !

@arkodg arkodg requested review from a team and jukie October 9, 2025 16:29
@mathetake
Copy link
Member

wow good find

@nacx
Copy link
Contributor

nacx commented Oct 9, 2025

Nice catch!

@codecov
Copy link

codecov bot commented Oct 9, 2025

Codecov Report

❌ Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 71.11%. Comparing base (b4282a6) to head (53d6ebf).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
internal/infrastructure/host/proxy_infra.go 0.00% 5 Missing ⚠️

❌ Your patch status has failed because the patch coverage (0.00%) is below the target coverage (60.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7180      +/-   ##
==========================================
+ Coverage   71.04%   71.11%   +0.07%     
==========================================
  Files         228      228              
  Lines       40676    40678       +2     
==========================================
+ Hits        28897    28927      +30     
+ Misses      10078    10059      -19     
+ Partials     1701     1692       -9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jukie jukie enabled auto-merge (squash) October 9, 2025 16:57
@codefromthecrypt
Copy link
Contributor Author

flakes are in k8s tests, so unrelated to this local mode

@arkodg arkodg disabled auto-merge October 9, 2025 18:25
@arkodg arkodg merged commit 99872f9 into envoyproxy:main Oct 9, 2025
26 of 32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Standalone mode Envoy unreasonably slow to become ready / PRE_INITIALIZING takes ~15s-30s

5 participants