Replies: 3 comments 5 replies
-
Wouldn't 1 require that the broker is given knowledge of the number of desired brokers? There's also the possibility that the number of desired brokers could change, which would further complicate matters. There is another alternative; that the CC metric reporter plugin is given logic to cause an |
Beta Was this translation helpful? Give feedback.
-
I guess there is option 5 -> you can deploy it all at once and then you rebalance it with whatever reason you want. What are the use-cases which make the distribution of the Cruise Control topics important? Also worth noting is the related discussion in https://cloud-native.slack.com/archives/C018247K8T0/p1660905404139799 |
Beta Was this translation helpful? Give feedback.
-
Ok, so, something simple and relatively uninvasive what we can do for this issue:
For example, they can simply bundle Kafka and KafkaTopic CRs into a single YAML file and apply it together. The KafkaTopic will be created only once the TO is started. At that point, the brokers are ready and the topic should be create properly. At the same time, it is before Cruise Control server start. But in general, users can use any mechanism they want to create the topic. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
There's a behavior we're facing when we're deploying a Kafka cluster with Cruise Control in multi AZ setup using rack awareness. When setting
spec.kafka.rack
&spec.kafka.cruiseControl
keys in aKafka
resource, the partition replicas of CC metrics reporter topic might not spread out across AZs properly because of a race between brokers getting ready and CC metrics reporter plugin creating the topic.Expected behavior
Since the Kafka resource provides two api fields:
spec.kafka.rack
&spec.kafka.cruiseControl
, users who set these two fields should end up with a Kafka & Cruise Control setup that satisfy the rack awareness expectations. Thus any topics that exist once Strimzi is finished with setup, should have the right AZ spread, including the cruise control metrics topic.There are many challenges for reaching the expected behavior and this is a discussion around that.
Suggestions
spec.kafka.rack
and once the cluster is ready, update theKafka
resource and setting thespec.kafka.cruiseControl
.RackAwareGoal
goal. I'm not sure if it's possible to have an auto-approvedKafkaRebalance
though.Related slack discussion: https://cloud-native.slack.com/archives/C018247K8T0/p1660905404139799
Beta Was this translation helpful? Give feedback.
All reactions