.. _envoy_api_file_api/eds.proto: Endpoints and EDS ================= .. _envoy_api_msg_LbEndpoint: LbEndpoint ---------- `[LbEndpoint proto] `_ An Endpoint that Envoy can route traffic to. .. code-block:: json { "endpoint": "{...}", "metadata": "{...}", "load_balancing_weight": "{...}" } .. _envoy_api_field_LbEndpoint.endpoint: endpoint (:ref:`Endpoint `) Upstream host identifier .. _envoy_api_field_LbEndpoint.metadata: metadata (:ref:`Metadata `) The endpoint metadata specifies values that may be used by the load balancer to select endpoints in a cluster for a given request. The filter name should be specified as *envoy.lb*. An example boolean key-value pair is *canary*, providing the optional canary status of the upstream host. This may be matched against in a route's ForwardAction metadata_match field to subset the endpoints considered in cluster load balancing. .. _envoy_api_field_LbEndpoint.load_balancing_weight: load_balancing_weight (`UInt32Value `_) The optional load balancing weight of the upstream host, in the range 1 - 128. Envoy uses the load balancing weight in some of the built in load balancers. The load balancing weight for an endpoint is divided by the sum of the weights of all endpoints in the endpoint's locality to produce a percentage of traffic for the endpoint. This percentage is then further weighted by the endpoint's locality's load balancing weight from LocalityLbEndpoints. If unspecified, each host is presumed to have equal weight in a locality. .. attention:: The limit of 128 is somewhat arbitrary, but is applied due to performance concerns with the current implementation and can be removed when `this issue `_ is fixed. .. _envoy_api_msg_LocalityLbEndpoints: LocalityLbEndpoints ------------------- `[LocalityLbEndpoints proto] `_ A group of endpoints belonging to a Locality. One can have multiple LocalityLbEndpoints for a locality, but this is generally only done if the different groups need to have different load balancing weights or different priorities. .. code-block:: json { "locality": "{...}", "lb_endpoints": [], "load_balancing_weight": "{...}", "priority": "..." } .. _envoy_api_field_LocalityLbEndpoints.locality: locality (:ref:`Locality `) Identifies location of where the upstream hosts run. .. _envoy_api_field_LocalityLbEndpoints.lb_endpoints: lb_endpoints (:ref:`LbEndpoint `) The group of endpoints belonging to the locality specified. .. _envoy_api_field_LocalityLbEndpoints.load_balancing_weight: load_balancing_weight (`UInt32Value `_) Optional: Per priority/region/zone/sub_zone weight - range 1-128. The load balancing weight for a locality is divided by the sum of the weights of all localities at the same priority level to produce the effective percentage of traffic for the locality. Weights must be specified for either all localities in a given priority level or none. If unspecified, each locality is presumed to have equal weight in a cluster. .. attention:: The limit of 128 is somewhat arbitrary, but is applied due to performance concerns with the current implementation and can be removed when `this issue `_ is fixed. .. _envoy_api_field_LocalityLbEndpoints.priority: priority (`uint32 `_) Optional: the priority for this LocalityLbEndpoints. If unspecified this will default to the highest priority (0). Under usual circumstances, Envoy will only select endpoints for the highest priority (0). In the event all endpoints for a particular priority are unavailable/unhealthy, Envoy will fail over to selecting endpoints for the next highest priority group. Priorities should range from 0 (highest) to N (lowest) without skipping. .. _envoy_api_msg_ClusterLoadAssignment: ClusterLoadAssignment --------------------- `[ClusterLoadAssignment proto] `_ Each route from RDS will map to a single cluster or traffic split across clusters using weights expressed in the RDS WeightedCluster. With EDS, each cluster is treated independently from a LB perspective, with LB taking place between the Localities within a cluster and at a finer granularity between the hosts within a locality. For a given cluster, the effective weight of a host is its load_balancing_weight multiplied by the load_balancing_weight of its Locality. .. code-block:: json { "cluster_name": "...", "endpoints": [], "policy": "{...}" } .. _envoy_api_field_ClusterLoadAssignment.cluster_name: cluster_name (`string `_, *REQUIRED*) Name of the cluster. This will be the :ref:`service_name ` value if specified in the cluster :ref:`EdsClusterConfig `. .. _envoy_api_field_ClusterLoadAssignment.endpoints: endpoints (:ref:`LocalityLbEndpoints `) List of endpoints to load balance to. .. _envoy_api_field_ClusterLoadAssignment.policy: policy (:ref:`ClusterLoadAssignment.Policy `) Load balancing policy settings. .. _envoy_api_msg_ClusterLoadAssignment.Policy: ClusterLoadAssignment.Policy ---------------------------- `[ClusterLoadAssignment.Policy proto] `_ Load balancing policy settings. .. code-block:: json { "drop_overload": "..." } .. _envoy_api_field_ClusterLoadAssignment.Policy.drop_overload: drop_overload (`double `_) Percentage of traffic (0-100) that should be dropped. This action allows protection of upstream hosts should they unable to recover from an outage or should they be unable to autoscale and hence overall incoming traffic volume need to be trimmed to protect them. .. NOTE:: **v2 API difference**: This is known as maintenance mode in v1.