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

priority partitioner #31

Closed
wants to merge 19 commits into from
Closed

priority partitioner #31

wants to merge 19 commits into from

Conversation

guysegal
Copy link
Contributor

No description provided.

service.log Outdated Show resolved Hide resolved
import org.apache.kafka.common.Cluster

class GroupPartitioner extends Partitioner {
private val partitionsPerGroup = 5
Copy link
Collaborator

Choose a reason for hiding this comment

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

You need to read it from the config

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't understand how to do that so I put const in the meanwhile

@guysegal guysegal changed the title WIP - group partitioner priority partitioner Nov 19, 2023
import org.apache.kafka.common.utils.Utils

class PriorityPartitioner extends Partitioner {
private val partitionsPerPriority = 2
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@omerlh can you help me with syntax here? I don't get how to read from configuration, and I tried..

@guysegal guysegal closed this Dec 21, 2023
@guysegal guysegal deleted the partitioner branch December 21, 2023 08:04
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.

2 participants