Skip to content

Commit e37a67e

Browse files
Add network_pass_through_lb_traffic_policy field to google_compute_region_backend_service resource to support zonal affinity for internal passthrough network load balancer. (#15698) (#25223)
[upstream:93c9a58a1607a913bc767d5bf8f05651b0d528fb] Signed-off-by: Modular Magician <magic-modules@google.com>
1 parent d352ad1 commit e37a67e

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.changelog/15698.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
compute: added `network_pass_through_lb_traffic_policy` field to `google_compute_region_backend_service` resource.
3+
```

website/docs/r/compute_region_backend_service.html.markdown

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -866,6 +866,11 @@ The following arguments are supported:
866866
List of custom metrics that are used for the WEIGHTED_ROUND_ROBIN locality_lb_policy.
867867
Structure is [documented below](#nested_custom_metrics).
868868

869+
* `network_pass_through_lb_traffic_policy` -
870+
(Optional, [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html))
871+
Configures traffic steering properties of internal passthrough Network Load Balancers.
872+
Structure is [documented below](#nested_network_pass_through_lb_traffic_policy).
873+
869874
* `outlier_detection` -
870875
(Optional)
871876
Settings controlling eviction of unhealthy hosts from the load balancing pool.
@@ -1417,6 +1422,30 @@ The following arguments are supported:
14171422
(Required)
14181423
If true, the metric data is not used for load balancing.
14191424

1425+
<a name="nested_network_pass_through_lb_traffic_policy"></a>The `network_pass_through_lb_traffic_policy` block supports:
1426+
1427+
* `zonal_affinity` -
1428+
(Optional)
1429+
When configured, new connections are load balanced across healthy backend endpoints in the local zone.
1430+
Structure is [documented below](#nested_network_pass_through_lb_traffic_policy_zonal_affinity).
1431+
1432+
1433+
<a name="nested_network_pass_through_lb_traffic_policy_zonal_affinity"></a>The `zonal_affinity` block supports:
1434+
1435+
* `spillover` -
1436+
(Optional, [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html))
1437+
This field indicates whether zonal affinity is enabled or not.
1438+
Default value is `ZONAL_AFFINITY_DISABLED`.
1439+
Possible values are: `ZONAL_AFFINITY_DISABLED`, `ZONAL_AFFINITY_SPILL_CROSS_ZONE`, `ZONAL_AFFINITY_STAY_WITHIN_ZONE`.
1440+
1441+
* `spillover_ratio` -
1442+
(Optional, [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html))
1443+
The value of the field must be in [0, 1]. When the ratio of the count of healthy backend endpoints in a zone
1444+
to the count of backend endpoints in that same zone is equal to or above this threshold, the load balancer
1445+
distributes new connections to all healthy endpoints in the local zone only. When the ratio of the count
1446+
of healthy backend endpoints in a zone to the count of backend endpoints in that same zone is below this
1447+
threshold, the load balancer distributes all new connections to all healthy endpoints across all zones.
1448+
14201449
<a name="nested_outlier_detection"></a>The `outlier_detection` block supports:
14211450

14221451
* `base_ejection_time` -

0 commit comments

Comments
 (0)