Skip to content

Commit

Permalink
Add rack aware replica selector to msk config
Browse files Browse the repository at this point in the history
  • Loading branch information
roy-dydx authored Sep 26, 2024
1 parent 44febb8 commit d750e2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion indexer/msk.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ resource "aws_msk_configuration" "main" {
message.max.bytes=4194304
unclean.leader.election.enable=true
zookeeper.session.timeout.ms=6000
replica.selector.class = org.apache.kafka.common.replica.RackAwareReplicaSelector
PROPERTIES

lifecycle {
Expand Down Expand Up @@ -56,4 +57,4 @@ resource "aws_msk_cluster" "main" {
arn = aws_msk_configuration.main.arn
revision = aws_msk_configuration.main.latest_revision
}
}
}

0 comments on commit d750e2e

Please sign in to comment.