Skip to content

Jamie/auto brokers #251

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

Merged
merged 2 commits into from
Apr 18, 2019
Merged

Jamie/auto brokers #251

merged 2 commits into from
Apr 18, 2019

Conversation

jamiealquiza
Copy link
Collaborator

@jamiealquiza jamiealquiza commented Apr 18, 2019

Updates the --brokers flag to accept the special identifier -1 which automatically expands to an ID list of all mapped brokers.

Example: If topic1 were running on broker set 1001,1002,1003 and we wanted to perform a rebalance, we might run the command topicmappr rebalance --topics topic1 --brokers 1001,1002,1003. This requires users to look up which brokers held partitions for topic1. Specifying -1 will automatically expand to 1001,1002,1003 without a user having to find this information: topicmappr rebalance --topics topic1 --brokers -1 would result in the exact same output.

Additionally, this expansion is an in-place substitution only for the special identifier. This allows additional, unmapped brokers to be included. If we were to scale topic1 using the original brokers along with the additional brokers 1004,1005, we could use the following command: topicmappr rebalance --topics topic1 --brokers -1,1004,1005.

Closes #163

@jamiealquiza jamiealquiza merged commit 740babf into master Apr 18, 2019
@jamiealquiza jamiealquiza deleted the jamie/auto-brokers branch April 18, 2019 19:58
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.

[topicmappr] add the ability to auto use existing brokers for a topic
1 participant