Skip to content

Commit

Permalink
Reduces max instances for MIGs in each project (#83)
Browse files Browse the repository at this point in the history
Previously the max instances for MIGs were 5, 10, 15 for mlab-sandbox,
mlab-staging, mlab-oti, respectively. This PR reduces those to 2, 3, 5, also
respectively. It is good for MIGs to scale out and in, but we need to set a
more reasonable upper bound in order to prevent large traffic spikes from
causing excessive GCP egress network charges.

Additionally, add MIG dfw13 to staging. dfw09 was retired a week ago, but I had
failed to remove it from the TF configs. However, we should have a least one
MIG in each project for testing.
  • Loading branch information
nkinkade authored Jul 18, 2024
1 parent 0aa50ff commit fc25139
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mlab-oti/platform-cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module "platform-cluster" {
disk_type = "pd-ssd"
machine_type = "n2-highcpu-4"
mig_min_replicas = 1
mig_max_replicas = 15
mig_max_replicas = 5
network_tier = "PREMIUM"
tags = ["ndt-cloud"]
scopes = ["cloud-platform"]
Expand Down
2 changes: 1 addition & 1 deletion mlab-sandbox/platform-cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module "platform-cluster" {
disk_type = "pd-ssd"
machine_type = "n2-highcpu-4"
mig_min_replicas = 1
mig_max_replicas = 5
mig_max_replicas = 2
network_tier = "PREMIUM"
tags = ["ndt-cloud"]
scopes = ["cloud-platform"]
Expand Down
4 changes: 2 additions & 2 deletions mlab-staging/platform-cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ module "platform-cluster" {
disk_type = "pd-ssd"
machine_type = "n2-highcpu-4"
mig_min_replicas = 1
mig_max_replicas = 10
mig_max_replicas = 3
network_tier = "PREMIUM"
tags = ["ndt-cloud"]
scopes = ["cloud-platform"]
},
migs = {
mlab4-dfw09 = {
mlab4-dfw13 = {
region = "us-south1"
}
},
Expand Down

0 comments on commit fc25139

Please sign in to comment.