Skip to content

Commit

Permalink
fix: use 3 broker to fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KaimingWan committed Jun 22, 2024
1 parent 01584c0 commit 3278df2
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions driver-msk/deploy/aws-cn/provision-kafka-aws.tf
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ locals {
subnet_ids = [
aws_subnet.subnet_az1.id,
aws_subnet.subnet_az2.id,
# aws_subnet.subnet_az3.id
aws_subnet.subnet_az3.id
]
}

Expand Down Expand Up @@ -237,16 +237,16 @@ resource "aws_subnet" "subnet_az2" {
Benchmark = "Kafka_Provider_Comparison_zhaoxiautomq"
}
}
#
# resource "aws_subnet" "subnet_az3" {
# availability_zone = data.aws_availability_zones.azs.names[2]
# cidr_block = "192.168.2.0/24"
# vpc_id = aws_vpc.benchmark_vpc.id
# map_public_ip_on_launch = true
# tags = {
# Benchmark = "Kafka_Provider_Comparison_zhaoxiautomq"
# }
# }

resource "aws_subnet" "subnet_az3" {
availability_zone = data.aws_availability_zones.azs.names[2]
cidr_block = "192.168.2.0/24"
vpc_id = aws_vpc.benchmark_vpc.id
map_public_ip_on_launch = true
tags = {
Benchmark = "Kafka_Provider_Comparison_zhaoxiautomq"
}
}


resource "aws_kms_key" "kms" {
Expand Down Expand Up @@ -305,7 +305,7 @@ PROPERTIES
resource "aws_msk_cluster" "mskcluster" {
cluster_name = "mskcluster"
kafka_version = "3.7.x.kraft"
number_of_broker_nodes = 2
number_of_broker_nodes = 3

configuration_info{
arn = aws_msk_configuration.rackconfig.arn
Expand All @@ -317,7 +317,7 @@ resource "aws_msk_cluster" "mskcluster" {
client_subnets = [
aws_subnet.subnet_az1.id,
aws_subnet.subnet_az2.id,
# aws_subnet.subnet_az3.id,
aws_subnet.subnet_az3.id,
]
storage_info {
ebs_storage_info {
Expand Down

0 comments on commit 3278df2

Please sign in to comment.