open-consul/agent/xds
Derek Menteer 609762077f
Backport of: Fix ClusterLoadAssignment timeouts dropping endpoints. into 1.16 (#19885)
Fix ClusterLoadAssignment timeouts dropping endpoints.

When a large number of upstreams are configured on a single envoy
proxy, there was a chance that it would timeout when waiting for
ClusterLoadAssignments. While this doesn't always immediately cause
issues, consul-dataplane instances appear to consistently drop
endpoints from their configurations after an xDS connection is
re-established (the server dies, random disconnect, etc).

This commit adds an `xds_fetch_timeout_ms` config to service registrations
so that users can set the value higher for large instances that have
many upstreams. The timeout can be disabled by setting a value of `0`.

This configuration was introduced to reduce the risk of causing a
breaking change for users if there is ever a scenario where endpoints
would never be received. Rather than just always blocking indefinitely
or for a significantly longer period of time, this config will affect
only the service instance associated with it.
2023-12-11 10:31:59 -06:00
..
accesslogs
config Backport of: Fix ClusterLoadAssignment timeouts dropping endpoints. into 1.16 (#19885) 2023-12-11 10:31:59 -06:00
extensionruntime
testcommon
testdata Backport of: Fix ClusterLoadAssignment timeouts dropping endpoints. into 1.16 (#19885) 2023-12-11 10:31:59 -06:00
validateupstream-test Backport of: Fix ClusterLoadAssignment timeouts dropping endpoints. into 1.16 (#19885) 2023-12-11 10:31:59 -06:00
clusters.go Backport of: Fix ClusterLoadAssignment timeouts dropping endpoints. into 1.16 (#19885) 2023-12-11 10:31:59 -06:00
clusters_test.go Backport of: Fix ClusterLoadAssignment timeouts dropping endpoints. into 1.16 (#19885) 2023-12-11 10:31:59 -06:00
delta.go
delta_envoy_extender_ce_test.go Backport of: Fix ClusterLoadAssignment timeouts dropping endpoints. into 1.16 (#19885) 2023-12-11 10:31:59 -06:00
delta_envoy_extender_test.go
delta_test.go
endpoints.go
endpoints_test.go
failover_policy.go
failover_policy_ce.go
golden_test.go
jwt_authn.go
jwt_authn_test.go
listeners.go Backport of: Fix ClusterLoadAssignment timeouts dropping endpoints. into 1.16 (#19885) 2023-12-11 10:31:59 -06:00
listeners_apigateway.go Backport of: Fix ClusterLoadAssignment timeouts dropping endpoints. into 1.16 (#19885) 2023-12-11 10:31:59 -06:00
listeners_ingress.go Backport of: Fix ClusterLoadAssignment timeouts dropping endpoints. into 1.16 (#19885) 2023-12-11 10:31:59 -06:00
listeners_test.go Backport of: Fix ClusterLoadAssignment timeouts dropping endpoints. into 1.16 (#19885) 2023-12-11 10:31:59 -06:00
naming.go
net_fallback.go
net_linux.go
protocol_trace.go
rbac.go
rbac_test.go
resources.go
resources_ce_test.go
resources_test.go Backport of: Fix ClusterLoadAssignment timeouts dropping endpoints. into 1.16 (#19885) 2023-12-11 10:31:59 -06:00
response.go
routes.go Backport of: Fix ClusterLoadAssignment timeouts dropping endpoints. into 1.16 (#19885) 2023-12-11 10:31:59 -06:00
routes_test.go
secrets.go
server.go
server_ce.go
testing.go
xds.go
xds_protocol_helpers_test.go
z_xds_packages.go
z_xds_packages_test.go