Skip to content

How do we perform tests on a stretched kafka cluster? What parameters would need testing? #16

Discussion options

You must be logged in to vote

In a stretched Kafka cluster, network issues between clusters can cause partitioning (i.e., temporary loss of communication). We need to determine how well Kafka handles ISR shrinking, leader re-elections, and producer/consumer failovers in such cases.

can we use iptables or tc (Traffic Control) to create artificial network disruptions between clusters

# Drop all traffic between Cluster A and Cluster B
iptables -A INPUT -s <ClusterB_IP> -j DROP

we could monitor Kafka logs for ISR shrinkage and leader re-election events. Use kafka-topics.sh --describe to check if partition replicas are still available. Then restore connectivity (iptables -F to remove rules) and track how long it takes for…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by rohan-anilkumar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants