mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-09-06 17:16:44 +00:00
Merge pull request #11228 from cblecker/rbs-sessionaffinity
provider/google: Add support for session_affinity to google_compute_region_backend_service
This commit is contained in:
commit
ce902c7c8e
@ -89,9 +89,9 @@ The following arguments are supported:
|
||||
* `region` - (Optional) The Region in which the created address should reside.
|
||||
If it is not provided, the provider region is used.
|
||||
|
||||
* `session_affinity` - (Optional) How to distribute load. Options are "NONE" (no
|
||||
affinity), "CLIENT\_IP" (hash of the source/dest addresses / ports), and
|
||||
"GENERATED\_COOKIE" (distribute load using a generated session cookie).
|
||||
* `session_affinity` - (Optional) How to distribute load. Options are `NONE` (no
|
||||
affinity), `CLIENT_IP` (hash of the source/dest addresses / ports), and
|
||||
`GENERATED_COOKIE` (distribute load using a generated session cookie).
|
||||
|
||||
* `timeout_sec` - (Optional) The number of secs to wait for a backend to respond
|
||||
to a request before considering the request failed. Defaults to `30`.
|
||||
|
@ -20,6 +20,7 @@ resource "google_compute_region_backend_service" "foobar" {
|
||||
description = "Hello World 1234"
|
||||
protocol = "TCP"
|
||||
timeout_sec = 10
|
||||
session_affinity = "CLIENT_IP"
|
||||
|
||||
backend {
|
||||
group = "${google_compute_instance_group_manager.foo.instance_group}"
|
||||
@ -84,6 +85,10 @@ The following arguments are supported:
|
||||
* `protocol` - (Optional) The protocol for incoming requests. Defaults to
|
||||
`HTTP`.
|
||||
|
||||
* `session_affinity` - (Optional) How to distribute load. Options are `NONE` (no
|
||||
affinity), `CLIENT_IP`, `CLIENT_IP_PROTO`, or `CLIENT_IP_PORT_PROTO`.
|
||||
Defaults to `NONE`.
|
||||
|
||||
* `region` - (Optional) The Region in which the created address should reside.
|
||||
If it is not provided, the provider region is used.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user