[feature request] connect: service-defaults/service-resolver support for upstream connection limits #9631
Labels
theme/connect
Anything related to Consul Connect, Service Mesh, Side Car Proxies
thinking
More time is needed to research by the Consul Contributors
type/enhancement
Proposed improvement or new feature
Feature Description
#6829 added support for configuring Envoy's circuit breaker settings for max connections/pending requests/concurrent requests for upstreams as part of the upstream configuration on a service (
proxy.upstreams[*].config
), however deferred the addition of these to central configs.This means as of today there's no configurability for upstream services provided through the discovery chain, which includes ingress gateways, etc. Because (TMK) for upstreams via the discovery chain you also can't use an escape hatch, we've hit a critical blocker with our Consul Connect/Envoy rollout, as we need to adjust these limits (primarily we need max connections > the default of 1,024 for a heavily trafficked service)
I'm raising this feature request but actually have changes locally that I'd love to contribute upstream that allow configuration of these via a
service-defaults
entry:There was some discussion by @banks and @crhino in the mentioned PR with respect to the right place to implement configurability for these, either in
service-defaults
or via aservice-resolver
. Before I finalise these changes and raise a PR, I wanted to kick off a discussion to make sure I'm aligned to y'alls vision for this:service-defaults
where you see this being configurable, or should it fall underservice-resolver
?proxy-defaults
for a "set once for all services" ability?Limits
make sense? For me, it's confusing as I'd expect it to be the limits for each of myweb
service instances but actuality, it's the limits for the upstreams to my service. DoesUpstreamLimits
make more sense?service-A
basically gets to decide what its upstream limits for talking toservice-B
are. With what I've implemented, all upstreams ofservice-B
would be configured equally - is that okay?service-defaults
forLimits.MaxConnections
andLimits.MaxPendingRequests
, but then a proxy upstream config for justLimits.MaxConnections
, would you expect the resulting configuration to merge?The text was updated successfully, but these errors were encountered: