Skip to content

feat: Make Envoy xDS cluster config values configurable - #40

Closed
bpalermo wants to merge 1 commit into
mainfrom
feat/configurable-xds-values
Closed

bpalermo wants to merge 1 commit into
mainfrom
feat/configurable-xds-values

Conversation

@bpalermo

Copy link
Copy Markdown
Owner

Summary

  • Extract hardcoded Envoy cluster config into a ClusterConfig struct with sensible defaults
  • Add 6 new CLI flags: --local-cluster-bind-address, --health-check-healthy-threshold, --health-check-unhealthy-threshold, --health-check-interval, --health-check-timeout, --upstream-protocol
  • Support HTTP/1.1 and HTTP/2 upstream protocols (default: HTTP/2)
  • Backward compatible — all defaults match previous hardcoded values

Files Changed

  • agent/internal/xds/proxy/cluster_config.go — New ClusterConfig struct
  • agent/internal/xds/proxy/cluster.go — Accept *ClusterConfig parameter
  • agent/internal/xds/cache/cluster.go — Thread config through
  • agent/internal/xds/server/server.go — Store and pass config
  • agent/pkg/cmd/config.go — Add ClusterConfig to AgentConfig
  • agent/pkg/cmd/root.go — Register new CLI flags
  • Tests updated across all affected packages

Test plan

  • bazel test --config=llm //agent/internal/xds/proxy:proxy_test passes
  • Full suite passes (non-integration tests)

🤖 Generated with Claude Code

@bpalermo
bpalermo force-pushed the feat/configurable-xds-values branch 3 times, most recently from 674c64e to a5d241e Compare March 22, 2026 14:13
Introduce ClusterConfig struct in the proxy package to make previously
hardcoded cluster generation values tunable via CLI flags:

- Local cluster bind address (--local-cluster-bind-address)
- Health check healthy/unhealthy thresholds (--health-check-healthy-threshold,
  --health-check-unhealthy-threshold)
- Health check interval and timeout (--health-check-interval,
  --health-check-timeout)
- Upstream HTTP protocol version (--upstream-protocol: h2 or http1)

All defaults match the previous hardcoded values for full backward
compatibility. The config is threaded from CLI flags through AgentConfig,
AgentXdsServer, SnapshotCache, and into the cluster builder functions.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
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.

1 participant