Hash Policy (proto)

type.v3.HashPolicy

[type.v3.HashPolicy proto]

Specifies the hash policy

{
  "source_ip": {...},
  "filter_state": {...}
}
source_ip

(type.v3.HashPolicy.SourceIp)

Precisely one of source_ip, filter_state must be set.

filter_state

(type.v3.HashPolicy.FilterState)

Precisely one of source_ip, filter_state must be set.

type.v3.HashPolicy.SourceIp

[type.v3.HashPolicy.SourceIp proto]

The source IP will be used to compute the hash used by hash-based load balancing algorithms.

type.v3.HashPolicy.FilterState

[type.v3.HashPolicy.FilterState proto]

An Object in the filterState will be used to compute the hash used by hash-based load balancing algorithms.

{
  "key": ...
}
key

(string, REQUIRED) The name of the Object in the filterState, which is an Envoy::Hashable object. If there is no data associated with the key, or the stored object is not Envoy::Hashable, no hash will be produced.