Skip to content

Commit

Permalink
Expand docs for auto_healing_policies in Instance Group Managers
Browse files Browse the repository at this point in the history
Adds more information for both (Zonal) Instance Group Managers and
Regional Instance Group Managers.
  • Loading branch information
danielcompton committed Oct 21, 2017
1 parent 26c7c62 commit 1ec22c2
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 4 deletions.
22 changes: 20 additions & 2 deletions website/docs/r/compute_instance_group_manager.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,19 @@ and [API](https://cloud.google.com/compute/docs/reference/latest/instanceGroupMa
## Example Usage

```hcl
resource "google_compute_health_check" "autohealing" {
name = "autohealing-health-check"
check_interval_sec = 5
timeout_sec = 5
healthy_threshold = 2
unhealthy_threshold = 12 # 60 seconds
http_health_check {
request_path = "/healthz"
port = "8080"
}
}
resource "google_compute_instance_group_manager" "appserver" {
name = "appserver-igm"
Expand All @@ -33,6 +46,11 @@ resource "google_compute_instance_group_manager" "appserver" {
name = "customHTTP"
port = 8888
}
auto_healing_policies {
health_check = "${google_compute_health_check.autohealing.self_link}"
initial_delay_sec = 300
}
}
```

Expand Down Expand Up @@ -86,7 +104,7 @@ The following arguments are supported:
---

* `auto_healing_policies` - (Optional, [Beta](/docs/providers/google/index.html#beta-features)) The autohealing policies for this managed instance
group. You can specify only one value. Structure is documented below.
group. You can specify only one value. Structure is documented below. For more information, see the [official documentation](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances#monitoring_groups).

The `named_port` block supports: (Include a `named_port` block for each named-port required).

Expand All @@ -96,7 +114,7 @@ The `named_port` block supports: (Include a `named_port` block for each named-po

The `auto_healing_policies` block supports:

* `health_check` - (Required) The health check that signals autohealing.
* `health_check` - (Required) The health check resource that signals autohealing.

* `initial_delay_sec` - (Required) The number of seconds that the managed instance group waits before
it applies autohealing policies to new instances or recently recreated instances. Between 0 and 3600.
Expand Down
22 changes: 20 additions & 2 deletions website/docs/r/compute_region_instance_group_manager.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,19 @@ and [API](https://cloud.google.com/compute/docs/reference/latest/regionInstanceG
## Example Usage

```hcl
resource "google_compute_health_check" "autohealing" {
name = "autohealing-health-check"
check_interval_sec = 5
timeout_sec = 5
healthy_threshold = 2
unhealthy_threshold = 12 # 60 seconds
http_health_check {
request_path = "/healthz"
port = "8080"
}
}
resource "google_compute_region_instance_group_manager" "appserver" {
name = "appserver-igm"
Expand All @@ -32,6 +45,11 @@ resource "google_compute_region_instance_group_manager" "appserver" {
name = "custom"
port = 8888
}
auto_healing_policies {
health_check = "${google_compute_health_check.autohealing.self_link}"
initial_delay_sec = 300
}
}
```

Expand Down Expand Up @@ -78,7 +96,7 @@ The following arguments are supported:
---

* `auto_healing_policies` - (Optional, [Beta](/docs/providers/google/index.html#beta-features)) The autohealing policies for this managed instance
group. You can specify only one value. Structure is documented below.
group. You can specify only one value. Structure is documented below. For more information, see the [official documentation](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances#monitoring_groups).

The `named_port` block supports: (Include a `named_port` block for each named-port required).

Expand All @@ -88,7 +106,7 @@ The `named_port` block supports: (Include a `named_port` block for each named-po

The `auto_healing_policies` block supports:

* `health_check` - (Required) The health check that signals autohealing.
* `health_check` - (Required) The health check resource that signals autohealing.

* `initial_delay_sec` - (Required) The number of seconds that the managed instance group waits before
it applies autohealing policies to new instances or recently recreated instances. Between 0 and 3600.
Expand Down

0 comments on commit 1ec22c2

Please sign in to comment.