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

Refactored StickyPartitionAssignmentStrategy and implemented task estimation logic in LoadBasedPartitionAssignmentStrategy #835

Merged
merged 12 commits into from
Jun 17, 2021

Conversation

jzakaryan
Copy link
Collaborator

@jzakaryan jzakaryan commented Jun 9, 2021

  • Removed DatastreamClusterResolver and refactored ThroughputInfoProvider. Now it's up to ThroughputInfoProvider to find source Kafka cluster and source fabric.
  • Refactored StickyPartitionAssignmentStrategy to break down the task count validation method into a method which just retrieves the task count estimate and a second one which does the validation and throws the exception.
  • Added _isPartitionNumBasedTaskCountEstimationEnabled and _isThroughputBasedTaskCountEstimationEnabled to be able to toggle them individually. These will be converted to proper configs in one the next PRs.
  • Implemented logic for task count estimation in LoadBasedPartitionAssignmentStrategy.
  • Implemented unit tests for LoadBasedPartitionAssignmentStrategy

Important: DO NOT REPORT SECURITY ISSUES DIRECTLY ON GITHUB.
For reporting security issues and contributing security fixes,
please, email security@linkedin.com instead, as described in
the contribution guidelines.

Please, take a minute to review the contribution guidelines at:
https://github.com/linkedin/Brooklin/blob/master/CONTRIBUTING.md

@jzakaryan jzakaryan marked this pull request as ready for review June 11, 2021 01:00
@jzakaryan jzakaryan requested a review from vmaheshw June 15, 2021 17:28
@jzakaryan jzakaryan requested a review from vmaheshw June 16, 2021 00:33
vmaheshw
vmaheshw previously approved these changes Jun 16, 2021
Copy link
Collaborator

@vmaheshw vmaheshw left a comment

Choose a reason for hiding this comment

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

2 nits.

@jzakaryan jzakaryan merged commit f4cf94d into linkedin:master Jun 17, 2021
vmaheshw pushed a commit to vmaheshw/brooklin that referenced this pull request Mar 1, 2022
…imation logic in LoadBasedPartitionAssignmentStrategy (linkedin#835)
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