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

doc: Adjust instance size of sharded clusters in docs and examples #2615

Merged
merged 1 commit into from
Sep 20, 2024
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
20 changes: 10 additions & 10 deletions docs/guides/advanced-cluster-new-sharding-schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ resource "mongodbatlas_advanced_cluster" "test" {
num_shards = 2
region_configs {
electable_specs {
instance_size = "M10"
instance_size = "M30"
node_count = 3
}
provider_name = "AWS"
Expand All @@ -117,7 +117,7 @@ resource "mongodbatlas_advanced_cluster" "test" {

region_configs {
electable_specs {
instance_size = "M10"
instance_size = "M30"
node_count = 3
}
provider_name = "AWS"
Expand All @@ -140,7 +140,7 @@ resource "mongodbatlas_advanced_cluster" "test" {
zone_name = "zone n1"
region_configs {
electable_specs {
instance_size = "M10"
instance_size = "M30"
node_count = 3
}
provider_name = "AWS"
Expand All @@ -153,7 +153,7 @@ resource "mongodbatlas_advanced_cluster" "test" {
zone_name = "zone n1"
region_configs {
electable_specs {
instance_size = "M10"
instance_size = "M30"
node_count = 3
}
provider_name = "AWS"
Expand All @@ -166,7 +166,7 @@ resource "mongodbatlas_advanced_cluster" "test" {
zone_name = "zone n2"
region_configs {
electable_specs {
instance_size = "M10"
instance_size = "M30"
node_count = 3
}
provider_name = "AWS"
Expand All @@ -179,7 +179,7 @@ resource "mongodbatlas_advanced_cluster" "test" {
zone_name = "zone n2"
region_configs {
electable_specs {
instance_size = "M10"
instance_size = "M30"
node_count = 3
}
provider_name = "AWS"
Expand Down Expand Up @@ -211,7 +211,7 @@ resource "mongodbatlas_advanced_cluster" "test" {
replication_specs {
region_configs {
electable_specs {
instance_size = "M10"
instance_size = "M30"
node_count = 3
}
provider_name = "AZURE"
Expand All @@ -235,7 +235,7 @@ resource "mongodbatlas_advanced_cluster" "test" {
replication_specs {
region_configs {
electable_specs {
instance_size = "M10"
instance_size = "M30"
node_count = 3
}
provider_name = "AZURE"
Expand All @@ -259,7 +259,7 @@ resource "mongodbatlas_advanced_cluster" "test" {
replication_specs { # first shard
region_configs {
electable_specs {
instance_size = "M10"
instance_size = "M30"
node_count = 3
}
provider_name = "AZURE"
Expand All @@ -271,7 +271,7 @@ resource "mongodbatlas_advanced_cluster" "test" {
replication_specs { # second shard
region_configs {
electable_specs {
instance_size = "M10"
instance_size = "M30"
node_count = 3
}
provider_name = "AZURE"
Expand Down
26 changes: 13 additions & 13 deletions docs/resources/advanced_cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ resource "mongodbatlas_advanced_cluster" "cluster" {
replication_specs { # shard 1
region_configs {
electable_specs {
instance_size = "M10"
instance_size = "M30"
node_count = 3
}
provider_name = "AWS"
Expand All @@ -148,7 +148,7 @@ resource "mongodbatlas_advanced_cluster" "cluster" {

region_configs {
electable_specs {
instance_size = "M10"
instance_size = "M30"
node_count = 2
}
provider_name = "AZURE"
Expand All @@ -160,17 +160,17 @@ resource "mongodbatlas_advanced_cluster" "cluster" {
replication_specs { # shard 2
region_configs {
electable_specs {
instance_size = "M10"
instance_size = "M30"
node_count = 3
}
provider_name = "AWS"
priority = 7
region_name = "US_EAST_1"
}

region_configs {
region_configs {
electable_specs {
instance_size = "M10"
instance_size = "M30"
node_count = 2
}
provider_name = "AZURE"
Expand Down Expand Up @@ -200,7 +200,7 @@ resource "mongodbatlas_advanced_cluster" "cluster" {

region_configs {
electable_specs {
instance_size = "M10"
instance_size = "M30"
node_count = 3
}
provider_name = "AWS"
Expand All @@ -210,7 +210,7 @@ resource "mongodbatlas_advanced_cluster" "cluster" {

region_configs {
electable_specs {
instance_size = "M10"
instance_size = "M30"
node_count = 2
}
provider_name = "AZURE"
Expand All @@ -224,7 +224,7 @@ resource "mongodbatlas_advanced_cluster" "cluster" {

region_configs {
electable_specs {
instance_size = "M10"
instance_size = "M30"
node_count = 3
}
provider_name = "AWS"
Expand All @@ -234,7 +234,7 @@ resource "mongodbatlas_advanced_cluster" "cluster" {

region_configs {
electable_specs {
instance_size = "M10"
instance_size = "M30"
node_count = 2
}
provider_name = "AZURE"
Expand All @@ -248,7 +248,7 @@ resource "mongodbatlas_advanced_cluster" "cluster" {

region_configs {
electable_specs {
instance_size = "M10"
instance_size = "M30"
node_count = 3
}
provider_name = "AWS"
Expand All @@ -258,7 +258,7 @@ resource "mongodbatlas_advanced_cluster" "cluster" {

region_configs {
electable_specs {
instance_size = "M10"
instance_size = "M30"
node_count = 2
}
provider_name = "AZURE"
Expand All @@ -272,7 +272,7 @@ resource "mongodbatlas_advanced_cluster" "cluster" {

region_configs {
electable_specs {
instance_size = "M10"
instance_size = "M30"
node_count = 3
}
provider_name = "AWS"
Expand All @@ -282,7 +282,7 @@ resource "mongodbatlas_advanced_cluster" "cluster" {

region_configs {
electable_specs {
instance_size = "M10"
instance_size = "M30"
node_count = 2
}
provider_name = "AZURE"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ resource "mongodbatlas_advanced_cluster" "cluster" {
}
}

replication_specs { # shard 2 - M20 instance size
replication_specs { # shard 2 - M30 instance size
region_configs {
electable_specs {
instance_size = "M20"
instance_size = "M30"
disk_iops = 3000
node_count = 3
}
Expand All @@ -35,10 +35,10 @@ resource "mongodbatlas_advanced_cluster" "cluster" {
}
}

replication_specs { # shard 3 - M10 instance size
replication_specs { # shard 3 - M40 instance size
region_configs {
electable_specs {
instance_size = "M10"
instance_size = "M40"
disk_iops = 3000
node_count = 3
}
Expand All @@ -48,10 +48,10 @@ resource "mongodbatlas_advanced_cluster" "cluster" {
}
}

replication_specs { # shard 4 - M10 instance size
replication_specs { # shard 4 - M40 instance size
region_configs {
electable_specs {
instance_size = "M10"
instance_size = "M40"
disk_iops = 3000
node_count = 3
}
Expand Down
16 changes: 8 additions & 8 deletions examples/mongodbatlas_advanced_cluster/global-cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ resource "mongodbatlas_advanced_cluster" "cluster" {

region_configs {
electable_specs {
instance_size = "M10"
instance_size = "M30"
node_count = 3
}
provider_name = "AWS"
Expand All @@ -28,7 +28,7 @@ resource "mongodbatlas_advanced_cluster" "cluster" {

region_configs {
electable_specs {
instance_size = "M10"
instance_size = "M30"
node_count = 2
}
provider_name = "AZURE"
Expand All @@ -42,7 +42,7 @@ resource "mongodbatlas_advanced_cluster" "cluster" {

region_configs {
electable_specs {
instance_size = "M10"
instance_size = "M30"
node_count = 3
}
provider_name = "AWS"
Expand All @@ -52,7 +52,7 @@ resource "mongodbatlas_advanced_cluster" "cluster" {

region_configs {
electable_specs {
instance_size = "M10"
instance_size = "M30"
node_count = 2
}
provider_name = "AZURE"
Expand All @@ -66,7 +66,7 @@ resource "mongodbatlas_advanced_cluster" "cluster" {

region_configs {
electable_specs {
instance_size = "M10"
instance_size = "M30"
node_count = 3
}
provider_name = "AWS"
Expand All @@ -76,7 +76,7 @@ resource "mongodbatlas_advanced_cluster" "cluster" {

region_configs {
electable_specs {
instance_size = "M10"
instance_size = "M30"
node_count = 2
}
provider_name = "AZURE"
Expand All @@ -90,7 +90,7 @@ resource "mongodbatlas_advanced_cluster" "cluster" {

region_configs {
electable_specs {
instance_size = "M10"
instance_size = "M30"
node_count = 3
}
provider_name = "AWS"
Expand All @@ -100,7 +100,7 @@ resource "mongodbatlas_advanced_cluster" "cluster" {

region_configs {
electable_specs {
instance_size = "M10"
instance_size = "M30"
node_count = 2
}
provider_name = "AZURE"
Expand Down
16 changes: 8 additions & 8 deletions examples/mongodbatlas_advanced_cluster/multi-cloud/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ resource "mongodbatlas_advanced_cluster" "cluster" {
replication_specs { # shard 1
region_configs {
electable_specs {
instance_size = "M10"
instance_size = "M30"
node_count = 3
}
analytics_specs {
instance_size = "M10"
instance_size = "M30"
node_count = 1
}
provider_name = "AWS"
Expand All @@ -26,11 +26,11 @@ resource "mongodbatlas_advanced_cluster" "cluster" {

region_configs {
electable_specs {
instance_size = "M10"
instance_size = "M30"
node_count = 2
}
analytics_specs {
instance_size = "M10"
instance_size = "M30"
node_count = 1
}
provider_name = "AZURE"
Expand All @@ -42,11 +42,11 @@ resource "mongodbatlas_advanced_cluster" "cluster" {
replication_specs { # shard 2
region_configs {
electable_specs {
instance_size = "M10"
instance_size = "M30"
node_count = 3
}
analytics_specs {
instance_size = "M10"
instance_size = "M30"
node_count = 1
}
provider_name = "AWS"
Expand All @@ -56,11 +56,11 @@ resource "mongodbatlas_advanced_cluster" "cluster" {

region_configs {
electable_specs {
instance_size = "M10"
instance_size = "M30"
node_count = 2
}
analytics_specs {
instance_size = "M10"
instance_size = "M30"
node_count = 1
}
provider_name = "AZURE"
Expand Down