-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Bug]: KafkaRebalance not respecting replicationThrottle #10122
Comments
Is it a duplicate of #9972? |
Not sure, But I was just now reading the docs on the Does this mean I was simply misusing the system and I should set both these parameters in all my topics to "*" to benefit from this Or it should be working already and this is not the solution? |
I'm not sure what exactly you mean with setting them to |
In the docs they state this:
Shouldn't I simply set I'll try it in our staging environment and report back, but if you have other ideas feel free to make suggestions! |
Ahh, ok ... I'm afraid I do not know how it works in detail, sorry. |
@AlbertoEAF these throttling configs are updated dynamically by Cruise Control while the rebalance is running. The issue is caused by the Topic Operator which reverts them because they are not part of the topic spec. If the Topic Operator is not running, then it should work fine (not ideal). See #9972 for more details and a possible workaround. Cruise Control uses single partitions when setting these configs and updates them as needed according to the current traffic (workload model). Having a static configuration with * could make the rebalance less efficient, but it may help with reducing the impact on clients. Not sure how this would work in practice. Let us know your findings. We are already working on a proper solution where the Topic Operator will automatically ignore both |
Triaged on 30/5/2024: @AlbertoEAF we are going to close this one as duplicated of #9972 and @fvaleri is going to ping the community user interested to fix it. If not he will take care of it. |
Bug Description
Hello,
I was triggering a KafkaRebalance in the mode
add-brokers
after adding one broker to have a cluster with 6 brokers.I set a really low threshold of replicationThrottle=10 (which is apparently in bytes/s according to the source code), as reported by the description of the
KafkaRebalance
with k9s:however, I am observing writes to the new broker at a rate of ~140MiB/s:
Steps to reproduce
This is the KafkaRebalance CRD I wrote and approved at first:
I first started with
replicationThrottle=10000
(supposedly ~10MB/s), but no throttling happened, so I tried 10 and the same write throughput to the new broker of 140MiB/s happened -- that's when I understood the parameter wasn't taking effect at all.Expected behavior
The
replicationThrottle
parameter should be respected, meaning my new broker would write at most<replicationThrottle value> [bytes/s]
.Strimzi version
0.40.0
Kubernetes version
kuberenetes v1.26.15-eks-adc7111
Installation method
unknown but I can ask if needed
Infrastructure
Amazon EKS
Configuration files and logs
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: