Skip to content

Commit

Permalink
Suspend ReplaceUnhealthy process for AWS tikv auto-scaling-group (#1014)
Browse files Browse the repository at this point in the history
* Suspend  process for AWS tikv auto-scaling-group

* Suspend ReplaceUnhealthy process for AWS tikv auto-scaling-group

* Revert variables.tf

Signed-off-by: Aylei <[email protected]>
  • Loading branch information
aylei authored and cofyc committed Oct 18, 2019
1 parent b8df97d commit 8faf766
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions deploy/modules/aws/tidb-cluster/local.tf
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ locals {
asg_max_size = var.tikv_count + 2
pre_userdata = file("${path.module}/pre_userdata")
# additional_userdata = file("userdata.sh")
suspended_processes = ["ReplaceUnhealthy"]
},
{
name = "${var.cluster_name}-tidb"
Expand Down
1 change: 1 addition & 0 deletions deploy/modules/aws/tidb-cluster/workers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ resource "aws_autoscaling_group" "workers" {
protect_from_scale_in = false
count = local.worker_group_count
placement_group = "" # The name of the placement group into which to launch the instances, if any.
suspended_processes = lookup(local.tidb_cluster_worker_groups[count.index], "suspended_processes", [])

tags = concat(
[
Expand Down

0 comments on commit 8faf766

Please sign in to comment.