- 1.65.0 (latest)
- 1.64.0
- 1.63.0
- 1.62.0
- 1.61.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.1
- 1.11.0
- 1.9.1
- 1.8.1
- 1.7.2
- 1.6.0-beta
public enum BackendService.LocalityLbPolicy extends Enum<BackendService.LocalityLbPolicy> implements ProtocolMessageEnum
The load balancing algorithm used within the scope of the locality. The possible values are: - ROUND_ROBIN: This is a simple policy in which each healthy backend is selected in round robin order. This is the default. - LEAST_REQUEST: An O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests. - RING_HASH: The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests. - RANDOM: The load balancer selects a random healthy host. - ORIGINAL_DESTINATION: Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer. - MAGLEV: used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, see https://ai.google/research/pubs/pub44824 This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED. If sessionAffinity is not NONE, and this field is not set to MAGLEV or RING_HASH, session affinity settings will not take effect. Only the default ROUND_ROBIN policy is supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
Protobuf enum google.cloud.compute.v1.BackendService.LocalityLbPolicy
Implements
ProtocolMessageEnumFields
Name | Description |
INVALID_LB_POLICY |
|
INVALID_LB_POLICY_VALUE |
|
LEAST_REQUEST | An O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests. |
LEAST_REQUEST_VALUE | An O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests. |
MAGLEV | This algorithm implements consistent hashing to backends. Maglev can be used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, see https://ai.google/research/pubs/pub44824 |
MAGLEV_VALUE | This algorithm implements consistent hashing to backends. Maglev can be used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, see https://ai.google/research/pubs/pub44824 |
ORIGINAL_DESTINATION | Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer. |
ORIGINAL_DESTINATION_VALUE | Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer. |
RANDOM | The load balancer selects a random healthy host. |
RANDOM_VALUE | The load balancer selects a random healthy host. |
RING_HASH | The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests. |
RING_HASH_VALUE | The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests. |
ROUND_ROBIN | This is a simple policy in which each healthy backend is selected in round robin order. This is the default. |
ROUND_ROBIN_VALUE | This is a simple policy in which each healthy backend is selected in round robin order. This is the default. |
UNDEFINED_LOCALITY_LB_POLICY | A value indicating that the enum field is not set. |
UNDEFINED_LOCALITY_LB_POLICY_VALUE | A value indicating that the enum field is not set. |
UNRECOGNIZED |
Methods
Name | Description |
forNumber(int value) | |
getDescriptor() | |
getDescriptorForType() | |
getNumber() | |
getValueDescriptor() | |
internalGetValueMap() | |
valueOf(Descriptors.EnumValueDescriptor desc) | |
valueOf(int value) | (deprecated) Use #forNumber(int) instead. |
valueOf(String name) | |
values() |