Hash Policy

type.v3.HashPolicy

[type.v3.HashPolicy proto]

Specifies the hash policy

  1. {
  2. "source_ip": "{...}",
  3. "filter_state": "{...}"
  4. }

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.

  1. {
  2. "key": "..."
  3. }

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.