Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suspend ReplaceUnhealthy process for AWS tikv auto-scaling-group #1014

Merged
merged 6 commits into from
Oct 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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