subset lb: added multiple keys or multiple selectors support for single host per subset mode (#22644)

* initial commit for single subset

Signed-off-by: wbpcode <wangbaiping@corp.netease.com>

* resolve conflict

Signed-off-by: wbpcode <wangbaiping@corp.netease.com>

* fix format

Signed-off-by: wbpcode <wangbaiping@corp.netease.com>

* resolve conflict

Signed-off-by: wbpcode <wangbaiping@corp.netease.com>

* fix format

Signed-off-by: wbpcode <wangbaiping@corp.netease.com>

Signed-off-by: wbpcode <wangbaiping@corp.netease.com>

Mirrored from https://github.com/envoyproxy/envoy @ 6bc1b71086a7f2df8a1d9e764823b191cc77c9f6
pull/626/head
data-plane-api(Azure Pipelines) 3 years ago
parent c9c248a34f
commit ae105c5e3b
  1. 5
      envoy/config/cluster/v3/cluster.proto

@ -306,10 +306,7 @@ message Cluster {
// Selects a mode of operation in which each subset has only one host. This mode uses the same rules for // Selects a mode of operation in which each subset has only one host. This mode uses the same rules for
// choosing a host, but updating hosts is faster, especially for large numbers of hosts. // choosing a host, but updating hosts is faster, especially for large numbers of hosts.
// //
// If a match is found to a host, that host will be used regardless of priority levels, unless the host is unhealthy. // If a match is found to a host, that host will be used regardless of priority levels.
//
// Currently, this mode is only supported if ``subset_selectors`` has only one entry, and ``keys`` contains
// only one entry.
// //
// When this mode is enabled, configurations that contain more than one host with the same metadata value for the single key in ``keys`` // When this mode is enabled, configurations that contain more than one host with the same metadata value for the single key in ``keys``
// will use only one of the hosts with the given key; no requests will be routed to the others. The cluster gauge // will use only one of the hosts with the given key; no requests will be routed to the others. The cluster gauge

Loading…
Cancel
Save