Add PVG rule enforcing non-zero minimum_ring_size (#31864)

---------

Signed-off-by: Antonio Leonti <leonti@google.com>

Mirrored from https://github.com/envoyproxy/envoy @ 1eaaedf9aa361eea5219b911ad1de725d0da069b
main
update-envoy[bot] 1 year ago
parent 64a262df9f
commit 2bba6fd140
  1. 3
      envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.proto

@ -46,7 +46,8 @@ message RingHash {
// provided host) the better the request distribution will reflect the desired weights. Defaults
// to 1024 entries, and limited to 8M entries. See also
// :ref:`maximum_ring_size<envoy_v3_api_field_config.cluster.v3.Cluster.RingHashLbConfig.maximum_ring_size>`.
google.protobuf.UInt64Value minimum_ring_size = 2 [(validate.rules).uint64 = {lte: 8388608}];
google.protobuf.UInt64Value minimum_ring_size = 2
[(validate.rules).uint64 = {lte: 8388608 gte: 1}];
// Maximum hash ring size. Defaults to 8M entries, and limited to 8M entries, but can be lowered
// to further constrain resource use. See also

Loading…
Cancel
Save