moving priority to lbendpoint (#259)

moving priority to LocalityLbEndpoints
cleaning up a bunch of comments.

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
pull/260/head
alyssawilk 8 years ago committed by GitHub
parent 69ddde46e4
commit 2c3c10ad96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 45
      api/eds.proto

@ -75,38 +75,53 @@ message LbEndpoint {
Metadata metadata = 3;
// The optional load balancing weight of the upstream host, in the range 1 -
// 100. Envoy uses the load balancing weight in some of the built in load
// 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.
// The limit of 128 is somewhat arbitrary, but is applied due to performance
// concerns with the current implmenetation and can be removed when
// https://github.com/envoyproxy/envoy/issues/1285 is fixed.
google.protobuf.UInt32Value load_balancing_weight = 4;
// Optional: the priority for this LbEndpoint. 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.
google.protobuf.UInt32Value priority = 5;
}
// All endpoints belonging to a Locality.
// 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.
message LocalityLbEndpoints {
Locality locality = 1;
repeated LbEndpoint lb_endpoints = 2;
// Optional: Per region/zone/sub_zone weight - range 1-100. The load balancing
// 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 to produce the effective percentage of traffic for the locality.
// 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.
//
// The limit of 128 is somewhat arbitrary, but is applied due to performance
// concerns with the current implmenetation and can be removed when
// https://github.com/envoyproxy/envoy/issues/1285 is fixed.
google.protobuf.UInt32Value load_balancing_weight = 3;
// 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.
google.protobuf.UInt32Value priority = 5;
}
// Example load report from a single request:

Loading…
Cancel
Save