Service LB Policy

Service LB Policy in Google Cloud defines how internal or external load balancers distribute traffic among backend services. It allows configuration of load balancing behavior, such as session affinity, connection draining, and failover settings. This policy helps optimize performance, reliability, and traffic management for services deployed across multiple regions or instances.

gcp.networkservices_service_lb_policy

Fields

TitleIDTypeData TypeDescription
_keycorestring
ancestorscorearray<string>
auto_capacity_draincorejsonOptional. Configuration to automatically move traffic away for unhealthy IG/NEG for the associated Backend Service.
create_timecoretimestampOutput only. The timestamp when this resource was created.
datadog_display_namecorestring
descriptioncorestringOptional. A free-text description of the resource. Max length 1024 characters.
failover_configcorejsonOptional. Configuration related to health based failover.
labelscorearray<string>Optional. Set of label tags associated with the ServiceLbPolicy resource.
load_balancing_algorithmcorestringOptional. The type of load balancing algorithm to be used. The default behavior is WATERFALL_BY_REGION.
namecorestringIdentifier. Name of the ServiceLbPolicy resource. It matches pattern `projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}`.
organization_idcorestring
parentcorestring
project_idcorestring
project_numbercorestring
region_idcorestring
resource_namecorestring
tagscorehstore_csv
update_timecoretimestampOutput only. The timestamp when this resource was last updated.
zone_idcorestring