Skip to content

Loadbased Partition assigner not using topic level metrics to recognize partitions#876

Merged
vmaheshw merged 10 commits intolinkedin:masterfrom
vmaheshw:fixTopicLevelEstimate
Dec 6, 2021
Merged

Loadbased Partition assigner not using topic level metrics to recognize partitions#876
vmaheshw merged 10 commits intolinkedin:masterfrom
vmaheshw:fixTopicLevelEstimate

Conversation

@vmaheshw
Copy link
Copy Markdown
Collaborator

@vmaheshw vmaheshw commented Dec 4, 2021

The load based estimator is considering the topic level metrics, but the assigner code is not using the information to distribute the partitions. Fixing the code to derive the partition level metrics.

surajkn
surajkn previously approved these changes Dec 6, 2021
if (index > -1) {
topic = p.substring(0, index);
}
String topic = extractTopicFromPartition(p);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably not a issue but for my understanding.
Below (for unassigned partitions for loop) we check if a partition is present in partitinInfoMap and if not check if partition's topic is present in partitionInfoMap. Why dont we do it that way here?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are doing it, see the default value. This loop is for the partitions already assigned. That's why it is of no value to update the map.

@vmaheshw vmaheshw merged commit 7380202 into linkedin:master Dec 6, 2021
vmaheshw added a commit to vmaheshw/brooklin that referenced this pull request Mar 1, 2022
…ze partitions (linkedin#876)

The load based estimator is considering the topic level metrics, but the assigner code is not using the information to distribute the partitions. Fixing the code to derive the partition level metrics.
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