package envoy.extensions.matching.input_matchers.consistent_hashing.v3

Mouse Melon logoGet desktop application:
View/edit binary Protocol Buffers messages

message ConsistentHashing

consistent_hashing.proto:23

The consistent hashing matchers computes a consistent hash from the input and matches if the resulting hash is within the configured threshold. More specifically, this matcher evaluates to true if hash(input, seed) % modulo >= threshold. Note that the consistency of the match result relies on the internal hash function (xxhash) remaining unchanged. While this is unlikely to happen intentionally, this could cause inconsistent match results between deployments.