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

[autothrottle] throttling only when reassignment uses zookeeper? #346

Open
seanlutner opened this issue Feb 11, 2021 · 2 comments
Open

[autothrottle] throttling only when reassignment uses zookeeper? #346

seanlutner opened this issue Feb 11, 2021 · 2 comments

Comments

@seanlutner
Copy link

Using kafka-kit to perform some rebuild operations to expand a broker cluster.

Process:

  • I ran metricsfetcher to generate metrics
  • I generated new maps for all my topics using topicmappr.
  • I started autothrottle
  • I take the generated maps and pass them to kafka-reassign-partitions --execute --reassignment-json-file my_topic.json --zookeeper zookeeper01:2181

Doing this works and when necessary autothrottle kicks in and does its thing. However, I was experimenting with using this command

kafka-reassign-partitions --execute --reassignment-json-file my_topic.json --bootstrap-server kafka01:9092 --additional in a loop to process batches of new maps. When I do this autothrottle seems to be unaware of what's going on and never kicks in. Is that expected? Am I doing something incorrectly?

@seanlutner seanlutner changed the title [auththrottle] throttling only when reassignment uses zookeeper? [autothrottle] throttling only when reassignment uses zookeeper? Feb 11, 2021
@jamiealquiza
Copy link
Collaborator

The way autothrottle works is that it periodically checks for a reassignment existing in ZooKeeper. My guess is that the reassignment finishes before it sees it or if you have Kafka configured in a chroot in ZooKeeper, autothrottle must be configured to look there via the -zk-prefix flag.

If you have any autothrottle logs, that may help as well.

@jamiealquiza
Copy link
Collaborator

Also, I just read this again. What version of Kafka are you running? My guess here is that newer tools have ported the feature to the Kafka admin client, so yeah, it's possible that it's registering the reassignment in the controller. I'll have to read a bit more into this.

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

No branches or pull requests

2 participants