Skip to content

Commit fc3652d

Browse files
Clarifying documentation for google_compute_backend_service locality_lb_policy (#11732) (#19513)
[upstream:a6cb55b7424ecf27e53703dc3250b2e06404df35] Signed-off-by: Modular Magician <[email protected]>
1 parent 4f99624 commit fc3652d

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

.changelog/11732.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:none
2+
3+
```

google/services/compute/resource_compute_backend_service.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,8 @@ The possible values are:
803803
Maglev, refer to https://ai.google/research/pubs/pub44824
804804
805805
* 'WEIGHTED_MAGLEV': Per-instance weighted Load Balancing via health check
806-
reported weights. If set, the Backend Service must
806+
reported weights. Only applicable to loadBalancingScheme
807+
EXTERNAL. If set, the Backend Service must
807808
configure a non legacy HTTP-based Health Check, and
808809
health check replies are expected to contain
809810
non-standard HTTP response header field
@@ -815,7 +816,7 @@ The possible values are:
815816
UNAVAILABLE_WEIGHT. Otherwise, Load Balancing remains
816817
equal-weight.
817818
818-
This field is applicable to either:
819+
locality_lb_policy is applicable to either:
819820
820821
* A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2,
821822
and loadBalancingScheme set to INTERNAL_MANAGED.
@@ -824,7 +825,7 @@ This field is applicable to either:
824825
Load Balancing). Only MAGLEV and WEIGHTED_MAGLEV values are possible for External
825826
Network Load Balancing. The default is MAGLEV.
826827
827-
If session_affinity is not NONE, and this field is not set to MAGLEV, WEIGHTED_MAGLEV,
828+
If session_affinity is not NONE, and locality_lb_policy is not set to MAGLEV, WEIGHTED_MAGLEV,
828829
or RING_HASH, session affinity settings will not take effect.
829830
830831
Only ROUND_ROBIN and RING_HASH are supported when the backend service is referenced

website/docs/r/compute_backend_service.html.markdown

+4-3
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,8 @@ The following arguments are supported:
489489
build times and host selection times. For more information about
490490
Maglev, refer to https://ai.google/research/pubs/pub44824
491491
* `WEIGHTED_MAGLEV`: Per-instance weighted Load Balancing via health check
492-
reported weights. If set, the Backend Service must
492+
reported weights. Only applicable to loadBalancingScheme
493+
EXTERNAL. If set, the Backend Service must
493494
configure a non legacy HTTP-based Health Check, and
494495
health check replies are expected to contain
495496
non-standard HTTP response header field
@@ -500,14 +501,14 @@ The following arguments are supported:
500501
instance either reported a valid weight or had
501502
UNAVAILABLE_WEIGHT. Otherwise, Load Balancing remains
502503
equal-weight.
503-
This field is applicable to either:
504+
locality_lb_policy is applicable to either:
504505
* A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2,
505506
and loadBalancingScheme set to INTERNAL_MANAGED.
506507
* A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED.
507508
* A regional backend service with loadBalancingScheme set to EXTERNAL (External Network
508509
Load Balancing). Only MAGLEV and WEIGHTED_MAGLEV values are possible for External
509510
Network Load Balancing. The default is MAGLEV.
510-
If session_affinity is not NONE, and this field is not set to MAGLEV, WEIGHTED_MAGLEV,
511+
If session_affinity is not NONE, and locality_lb_policy is not set to MAGLEV, WEIGHTED_MAGLEV,
511512
or RING_HASH, session affinity settings will not take effect.
512513
Only ROUND_ROBIN and RING_HASH are supported when the backend service is referenced
513514
by a URL map that is bound to target gRPC proxy that has validate_for_proxyless

0 commit comments

Comments
 (0)