9fe6c33c0d
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.
68 lines
2.7 KiB
Go
68 lines
2.7 KiB
Go
package logging
|
|
|
|
const (
|
|
ACL string = "acl"
|
|
Agent string = "agent"
|
|
AntiEntropy string = "anti_entropy"
|
|
AutoEncrypt string = "auto_encrypt"
|
|
AutoConfig string = "auto_config"
|
|
Autopilot string = "autopilot"
|
|
AWS string = "aws"
|
|
Azure string = "azure"
|
|
CA string = "ca"
|
|
Catalog string = "catalog"
|
|
CentralConfig string = "central_config"
|
|
ConfigEntry string = "config_entry"
|
|
Connect string = "connect"
|
|
Consul string = "consul"
|
|
ConsulClient string = "client"
|
|
ConsulServer string = "server"
|
|
Coordinate string = "coordinate"
|
|
DNS string = "dns"
|
|
Envoy string = "envoy"
|
|
FederationState string = "federation_state"
|
|
FSM string = "fsm"
|
|
GatewayLocator string = "gateway_locator"
|
|
HTTP string = "http"
|
|
IngressGateway string = "ingress_gateway"
|
|
Intentions string = "intentions"
|
|
Internal string = "internal"
|
|
KV string = "kvs"
|
|
LAN string = "lan"
|
|
Leader string = "leader"
|
|
Legacy string = "legacy"
|
|
License string = "license"
|
|
Manager string = "manager"
|
|
Memberlist string = "memberlist"
|
|
MeshGateway string = "mesh_gateway"
|
|
Namespace string = "namespace"
|
|
NetworkAreas string = "network_areas"
|
|
Operator string = "operator"
|
|
PreparedQuery string = "prepared_query"
|
|
Proxy string = "proxy"
|
|
ProxyConfig string = "proxycfg"
|
|
Raft string = "raft"
|
|
Replication string = "replication"
|
|
Router string = "router"
|
|
RPC string = "rpc"
|
|
Serf string = "serf"
|
|
Session string = "session"
|
|
Sentinel string = "sentinel"
|
|
Snapshot string = "snapshot"
|
|
Partition string = "partition"
|
|
Peering string = "peering"
|
|
PeeringMetrics string = "peering_metrics"
|
|
TerminatingGateway string = "terminating_gateway"
|
|
TLSUtil string = "tlsutil"
|
|
Transaction string = "txn"
|
|
UsageMetrics string = "usage_metrics"
|
|
UIServer string = "ui_server"
|
|
UIMetricsProxy string = "ui_metrics_proxy"
|
|
WAN string = "wan"
|
|
Watch string = "watch"
|
|
XDS string = "xds"
|
|
XDSCapacityController string = "xds_capacity_controller"
|
|
Vault string = "vault"
|
|
Health string = "health"
|
|
)
|