open-consul/website/content/docs
Dan Upton 9fe6c33c0d
xDS Load Balancing (#14397)
Prior to #13244, connect proxies and gateways could only be configured by an
xDS session served by the local client agent.

In an upcoming release, it will be possible to deploy a Consul service mesh
without client agents. In this model, xDS sessions will be handled by the
servers themselves, which necessitates load-balancing to prevent a single
server from receiving a disproportionate amount of load and becoming
overwhelmed.

This introduces a simple form of load-balancing where Consul will attempt to
achieve an even spread of load (xDS sessions) between all healthy servers.
It does so by implementing a concurrent session limiter (limiter.SessionLimiter)
and adjusting the limit according to autopilot state and proxy service
registrations in the catalog.

If a server is already over capacity (i.e. the session limit is lowered),
Consul will begin draining sessions to rebalance the load. This will result
in the client receiving a `RESOURCE_EXHAUSTED` status code. It is the client's
responsibility to observe this response and reconnect to a different server.

Users of the gRPC client connection brokered by the
consul-server-connection-manager library will get this for free.

The rate at which Consul will drain sessions to rebalance load is scaled
dynamically based on the number of proxies in the catalog.
2022-09-09 15:02:01 +01:00
..
agent xDS Load Balancing (#14397) 2022-09-09 15:02:01 +01:00
api-gateway Update website/content/docs/api-gateway/tech-specs.mdx 2022-09-08 14:41:06 -07:00
architecture docs: Fix spelling errors across site (#12973) 2022-05-10 07:28:33 -07:00
connect Docs cni plugin (#14009) 2022-09-01 16:22:11 -07:00
discovery docs: node lookups don't support filtering on tag 2022-08-31 13:58:23 -04:00
dynamic-app-config docs: simplify agent docs slugs 2022-04-11 17:38:47 -07:00
ecs Update requirements.mdx (#14286) 2022-08-22 11:04:51 -07:00
enterprise docs: licensing improvements (#14488) 2022-09-06 18:39:07 -07:00
guides
install docs: simplify agent docs slugs 2022-04-11 17:38:47 -07:00
integrate Updated consul monitoring with Newrelic APM (#14360) 2022-08-26 09:13:46 -07:00
internals docs: Avoid redirects by pointing links to new URLs 2022-01-20 08:52:51 -08:00
intro add suggestions from code review 2022-08-08 17:09:47 -05:00
k8s docs: small typos in single dc k8s clusters (#14484) 2022-09-06 16:55:09 -07:00
lambda docs: Release notes for Consul 1.12, 1.13 and Consul K8s 0.47.0 (#14352) 2022-08-26 13:37:41 -07:00
nia updated HA configuration ref 2022-09-07 14:13:39 -07:00
release-notes docs: Consul K8s 0.48.0 release notes (#14414) 2022-09-01 16:21:36 -07:00
security Add peering ACL docs (#13855) 2022-08-08 11:44:25 -06:00
troubleshoot docs: simplify agent docs slugs 2022-04-11 17:38:47 -07:00
upgrading Add documentation and changelog entry. 2022-08-29 13:43:49 -05:00
download-tools.mdx Add HashiBox to community tools 2022-06-26 15:50:25 +02:00
index.mdx docs: fix external links to agent config pages 2022-04-11 17:38:11 -07:00