Interface Cluster.LeastRequestLbConfigOrBuilder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      RuntimeDouble getActiveRequestBias()
      The following formula is used to calculate the dynamic weights when hosts have different load balancing weights: ``weight = load_balancing_weight / (active_requests + 1)^active_request_bias`` The larger the active request bias is, the more aggressively active requests will lower the effective weight when all host weights are not equal.
      RuntimeDoubleOrBuilder getActiveRequestBiasOrBuilder()
      The following formula is used to calculate the dynamic weights when hosts have different load balancing weights: ``weight = load_balancing_weight / (active_requests + 1)^active_request_bias`` The larger the active request bias is, the more aggressively active requests will lower the effective weight when all host weights are not equal.
      com.google.protobuf.UInt32Value getChoiceCount()
      The number of random healthy hosts from which the host with the fewest active requests will be chosen.
      com.google.protobuf.UInt32ValueOrBuilder getChoiceCountOrBuilder()
      The number of random healthy hosts from which the host with the fewest active requests will be chosen.
      Cluster.SlowStartConfig getSlowStartConfig()
      Configuration for slow start mode.
      Cluster.SlowStartConfigOrBuilder getSlowStartConfigOrBuilder()
      Configuration for slow start mode.
      boolean hasActiveRequestBias()
      The following formula is used to calculate the dynamic weights when hosts have different load balancing weights: ``weight = load_balancing_weight / (active_requests + 1)^active_request_bias`` The larger the active request bias is, the more aggressively active requests will lower the effective weight when all host weights are not equal.
      boolean hasChoiceCount()
      The number of random healthy hosts from which the host with the fewest active requests will be chosen.
      boolean hasSlowStartConfig()
      Configuration for slow start mode.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • hasChoiceCount

        boolean hasChoiceCount()
         The number of random healthy hosts from which the host with the fewest active requests will
         be chosen. Defaults to 2 so that we perform two-choice selection if the field is not set.
         
        .google.protobuf.UInt32Value choice_count = 1 [(.validate.rules) = { ... }
        Returns:
        Whether the choiceCount field is set.
      • getChoiceCount

        com.google.protobuf.UInt32Value getChoiceCount()
         The number of random healthy hosts from which the host with the fewest active requests will
         be chosen. Defaults to 2 so that we perform two-choice selection if the field is not set.
         
        .google.protobuf.UInt32Value choice_count = 1 [(.validate.rules) = { ... }
        Returns:
        The choiceCount.
      • getChoiceCountOrBuilder

        com.google.protobuf.UInt32ValueOrBuilder getChoiceCountOrBuilder()
         The number of random healthy hosts from which the host with the fewest active requests will
         be chosen. Defaults to 2 so that we perform two-choice selection if the field is not set.
         
        .google.protobuf.UInt32Value choice_count = 1 [(.validate.rules) = { ... }
      • hasActiveRequestBias

        boolean hasActiveRequestBias()
         The following formula is used to calculate the dynamic weights when hosts have different load
         balancing weights:
        
         ``weight = load_balancing_weight / (active_requests + 1)^active_request_bias``
        
         The larger the active request bias is, the more aggressively active requests will lower the
         effective weight when all host weights are not equal.
        
         ``active_request_bias`` must be greater than or equal to 0.0.
        
         When ``active_request_bias == 0.0`` the Least Request Load Balancer doesn't consider the number
         of active requests at the time it picks a host and behaves like the Round Robin Load
         Balancer.
        
         When ``active_request_bias > 0.0`` the Least Request Load Balancer scales the load balancing
         weight by the number of active requests at the time it does a pick.
        
         The value is cached for performance reasons and refreshed whenever one of the Load Balancer's
         host sets changes, e.g., whenever there is a host membership update or a host load balancing
         weight change.
        
         .. note::
         This setting only takes effect if all host weights are not equal.
         
        .envoy.config.core.v3.RuntimeDouble active_request_bias = 2;
        Returns:
        Whether the activeRequestBias field is set.
      • getActiveRequestBias

        RuntimeDouble getActiveRequestBias()
         The following formula is used to calculate the dynamic weights when hosts have different load
         balancing weights:
        
         ``weight = load_balancing_weight / (active_requests + 1)^active_request_bias``
        
         The larger the active request bias is, the more aggressively active requests will lower the
         effective weight when all host weights are not equal.
        
         ``active_request_bias`` must be greater than or equal to 0.0.
        
         When ``active_request_bias == 0.0`` the Least Request Load Balancer doesn't consider the number
         of active requests at the time it picks a host and behaves like the Round Robin Load
         Balancer.
        
         When ``active_request_bias > 0.0`` the Least Request Load Balancer scales the load balancing
         weight by the number of active requests at the time it does a pick.
        
         The value is cached for performance reasons and refreshed whenever one of the Load Balancer's
         host sets changes, e.g., whenever there is a host membership update or a host load balancing
         weight change.
        
         .. note::
         This setting only takes effect if all host weights are not equal.
         
        .envoy.config.core.v3.RuntimeDouble active_request_bias = 2;
        Returns:
        The activeRequestBias.
      • getActiveRequestBiasOrBuilder

        RuntimeDoubleOrBuilder getActiveRequestBiasOrBuilder()
         The following formula is used to calculate the dynamic weights when hosts have different load
         balancing weights:
        
         ``weight = load_balancing_weight / (active_requests + 1)^active_request_bias``
        
         The larger the active request bias is, the more aggressively active requests will lower the
         effective weight when all host weights are not equal.
        
         ``active_request_bias`` must be greater than or equal to 0.0.
        
         When ``active_request_bias == 0.0`` the Least Request Load Balancer doesn't consider the number
         of active requests at the time it picks a host and behaves like the Round Robin Load
         Balancer.
        
         When ``active_request_bias > 0.0`` the Least Request Load Balancer scales the load balancing
         weight by the number of active requests at the time it does a pick.
        
         The value is cached for performance reasons and refreshed whenever one of the Load Balancer's
         host sets changes, e.g., whenever there is a host membership update or a host load balancing
         weight change.
        
         .. note::
         This setting only takes effect if all host weights are not equal.
         
        .envoy.config.core.v3.RuntimeDouble active_request_bias = 2;
      • hasSlowStartConfig

        boolean hasSlowStartConfig()
         Configuration for slow start mode.
         If this configuration is not set, slow start will not be not enabled.
         
        .envoy.config.cluster.v3.Cluster.SlowStartConfig slow_start_config = 3;
        Returns:
        Whether the slowStartConfig field is set.
      • getSlowStartConfig

        Cluster.SlowStartConfig getSlowStartConfig()
         Configuration for slow start mode.
         If this configuration is not set, slow start will not be not enabled.
         
        .envoy.config.cluster.v3.Cluster.SlowStartConfig slow_start_config = 3;
        Returns:
        The slowStartConfig.
      • getSlowStartConfigOrBuilder

        Cluster.SlowStartConfigOrBuilder getSlowStartConfigOrBuilder()
         Configuration for slow start mode.
         If this configuration is not set, slow start will not be not enabled.
         
        .envoy.config.cluster.v3.Cluster.SlowStartConfig slow_start_config = 3;