Home

envoy.extensions.load_balancing_policies.ring_hash.v3.RingHash

Example

Disclaimer: The example is meant to show what methods are available on the object and does not necessarily constitute working code.
local types = import 'types.libsonnet';

types.envoy.extensions.load_balancing_policies.ring_hash.v3.RingHash
.withConsistentHashingLbConfig(types.envoy.extensions.load_balancing_policies.common.v3.ConsistentHashingLbConfig)
.withHashBalanceFactor(1)
.withHashFunction(types.envoy.extensions.load_balancing_policies.ring_hash.v3.RingHash.HashFunction.DEFAULT_HASH)
.withMaximumRingSize(1)
.withMinimumRingSize(1)
.withUseHostnameForHashing(false)
._validate()

Nested Enums

Fields

Name Type One-of group Required Constraints
consistent_hashing_lb_config envoy.extensions.load_balancing_policies.common.v3.ConsistentHashingLbConfig  
hash_balance_factor google.protobuf.UInt32Value   {"Uint32":{"gte":100}}
hash_function envoy.extensions.load_balancing_policies.ring_hash.v3.RingHash.HashFunction   {"Enum":{"defined_only":true}}
maximum_ring_size google.protobuf.UInt64Value   {"Uint64":{"lte":8388608}}
minimum_ring_size google.protobuf.UInt64Value   {"Uint64":{"lte":8388608}}
use_hostname_for_hashing bool