question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: Modification of the RackAwareGoal behavior

See original GitHub issue

BackGround

Currently, cruise-control provides a RackAwareGoal to manager the partition rebalance among the cluster. This goal need to have a rack number >= to the biggest number of topic replicas.

If the rack number is lower than that, cruise-control doesn’t be able to do a rebalance of partitions.

Issue

This prerequisite cannot be meet in some cases but the functionality of rebalance is still needed and could work.

For example in this case with a topic with 1 partition and 4 replicas :

Data Center A             | Data Center B
                          |
Broker1-rack A  replica 0 | Broker2-rack B
Broker3-rack A            | Broker4-rack B replica 1
Broker5-rack A  replica 2 | Broker6-rack B
Broker7-rack A            | Broker8-rack B replica 3

With that we are secured even if the Data Center B is totally down and Broker5 is down also, but in term of partition distribution it’s not necessary to make a distinction between brokers in the same Data Center.

Proposal

Change the behavior of the rebalance regarding the RackAwareGoal by adding an optional paramter to force the minimum rack number instead of setting it with the biggest number of topic replicas.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:15

github_iconTop GitHub Comments

1reaction
mkandicommented, Feb 20, 2020

thank you. working on adding the tests and will be sending it soon

1reaction
mkandicommented, Feb 13, 2020

@efeg and Team, we have written a new pluggable goal to satisfy this requirement and would like to contribute it back. Hope this is ok.

Read more comments on GitHub >

github_iconTop Results From Across the Web

kafka-cruise-control/Lobby - Gitter
For my teams case, we are mostly concerned about CPU and Disk and so I set: default.goals=com.linkedin.kafka.cruisecontrol.analyzer.goals.RackAwareGoal ...
Read more >
Chapter 14. Cruise Control for cluster rebalancing
When you make a POST request to the /rebalance endpoint, an optimization proposal is returned in response. Use the information in the proposal...
Read more >
How Cruise Control self-healing works | CDP Private Cloud
The Anomaly detector is responsible for the self-healing feature of Cruise Control. When self-healing is enabled in Cruise Control, the detected anomalies ...
Read more >
Confluent Platform Component Changelogs
PR-372 - fix change in checkstyle behavior; PR-357 - log4j migration to confluent ... PR-9455 - KAFKA-10599: Implement basic CLI tool for feature...
Read more >
Configuring Strimzi
Kafka Bridge. Cruise Control. You can also use custom resource configuration to manage your instances or modify your deployment to introduce additional features...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found