Reference documentation and code samples for the Google Cloud Network Services V1 Client class LoadBalancingAlgorithm.
The global load balancing algorithm to be used.
Protobuf type google.cloud.networkservices.v1.ServiceLbPolicy.LoadBalancingAlgorithm
Namespace
Google \ Cloud \ NetworkServices \ V1 \ ServiceLbPolicyMethods
static::name
Parameter | |
---|---|
Name | Description |
value |
mixed
|
static::value
Parameter | |
---|---|
Name | Description |
name |
mixed
|
Constants
LOAD_BALANCING_ALGORITHM_UNSPECIFIED
Value: 0
The type of the loadbalancing algorithm is unspecified.
Generated from protobuf enum LOAD_BALANCING_ALGORITHM_UNSPECIFIED = 0;
SPRAY_TO_WORLD
Value: 3
Balance traffic across all backends across the world proportionally based on capacity.
Generated from protobuf enum SPRAY_TO_WORLD = 3;
SPRAY_TO_REGION
Value: 4
Direct traffic to the nearest region with endpoints and capacity before spilling over to other regions and spread the traffic from each client to all the MIGs/NEGs in a region.
Generated from protobuf enum SPRAY_TO_REGION = 4;
WATERFALL_BY_REGION
Value: 5
Direct traffic to the nearest region with endpoints and capacity before spilling over to other regions. All MIGs/NEGs within a region are evenly loaded but each client might not spread the traffic to all the MIGs/NEGs in the region.
Generated from protobuf enum WATERFALL_BY_REGION = 5;
WATERFALL_BY_ZONE
Value: 6
Attempt to keep traffic in a single zone closest to the client, before spilling over to other zones.
Generated from protobuf enum WATERFALL_BY_ZONE = 6;