Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

Commit

Permalink
capture: set kafka partitioner to murmur2_random (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
xvello authored Apr 25, 2024
1 parent 60debad commit 26a67e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions capture/src/sinks/kafka.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ impl KafkaSink {
client_config
.set("bootstrap.servers", &config.kafka_hosts)
.set("statistics.interval.ms", "10000")
.set("partitioner", "murmur2_random") // Compatibility with python-kafka
.set("linger.ms", config.kafka_producer_linger_ms.to_string())
.set(
"message.timeout.ms",
Expand Down

0 comments on commit 26a67e9

Please sign in to comment.