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

KafkaSinkCluster: route DescribeLogDirs request #1823

Merged
merged 2 commits into from
Nov 20, 2024

Conversation

rukai
Copy link
Member

@rukai rukai commented Nov 19, 2024

This PR implements routing for DescribeLogDirs.

When the java driver routes DescribeLogDirs it sends it to a broker specified by the user.
When kafka-log-dirs.sh routes DescribeLogDirs it sends an identical request to every node in the cluster.
To handle this type of broadcast request shotover routes the request to all nodes in the rack. For other examples look at ListGroups, ListTransactions etc.

We route the request to all nodes in shotover's rack and then combine the results.
We alter the log dir path to avoid collisions with results from other racks, the new path looks like actual-kafka-broker-id3:/original/log/dir/path.
For more details on the reasoning behind this, look at the comment on fn prepend_destination_to_log_dir.

@rukai rukai changed the title Describe log dirs KafkaSinkCluster: route DescribeLogDirs requests Nov 19, 2024
@rukai rukai changed the title KafkaSinkCluster: route DescribeLogDirs requests KafkaSinkCluster: route DescribeLogDirs request Nov 19, 2024
Copy link

codspeed-hq bot commented Nov 19, 2024

CodSpeed Performance Report

Merging #1823 will not alter performance

Comparing rukai:describe_log_dirs (ced406b) with main (3f76b54)

Summary

✅ 38 untouched benchmarks

@rukai rukai force-pushed the describe_log_dirs branch 4 times, most recently from ca16a20 to 87f79e5 Compare November 19, 2024 21:57
@rukai rukai marked this pull request as ready for review November 19, 2024 22:45
@conorbros conorbros merged commit 229c9ce into shotover:main Nov 20, 2024
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants