-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[fix][broker] Allow broker deployment in heterogeneous hw config cluster without restricting nic speed detection #21409
Conversation
…ter without restricting nic speed detection
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess that we missed the problem because many deployments of Pulsar are now on k8s and usually with homogeneous hardware
+1
Question: |
Think this way: there is no way to get specific information then should we handle this scenario or should we just not allow that user to use that software? it's not possible to auto-detect NIC in some VMs and in heterogenous h/w config you can have VMs with different NIC values where it's not possible to provide different broker-conf file to every different broker. therefore, load balancer is already handling such scenarios where nic is one of the metrics which can be skipped if it doesn't exist with a warning message. so, we can not consider the absence of NIC value as the end of the world and make broker service unavailable. |
Yes, I am not saying reverting is wrong. I wondered if we could improve some logic related to this area to avoid misleading load balancers. (we can do it in the next PR) e.g. "Once NIC limit is zero, we should get rid of nic usage calculation." |
Load-balancer already does that. |
…ter without restricting nic speed detection (apache#21409) (cherry picked from commit 789d284)
…ter without restricting nic speed detection (apache#21409) (cherry picked from commit 789d284)
…ter without restricting nic speed detection (apache#21409) (cherry picked from commit 789d284)
Motivation
This PR #14648 is incorrectly introduced, causing broker service unavailability while upgrading brokers in heterogeneous hardware config clusters. Sometime broker can’t find nic speed as it’s not defined into multiple types of VM which is very well know behavior and that’s why broker handles such usecase while managing load report by avoiding n/w bandwidth metrics.
This PR #14648 was introduced by completely ignoring heterogeneous hardware configuration cluster usecase because of that broker upgrade in that cluster has brought down all those VM brokers and can cause the outage. that PR also had test cases failing due to the same reason and it was addressed by another hack by configuring
loadBalancerOverrideBrokerNicSpeedGbps
. againloadBalancerOverrideBrokerNicSpeedGbps
doesn’t work in heterogeneous h/w config cluster as we can not configure every different broker with different config file.Right now, broker startup fails on every VM due to this error and we can't even configure
loadBalancerOverrideBrokerNicSpeedGbps
as there are different h/w config types of broker in a cluster and it's not easy to manage different config-base for each broker:so, either broker can perform auto-detect nic speed, if not then there has to be an option to ignore n/w bandwidth calculation which was the existing behavior by considering different h/w config cluster which was completely ignored by this PR #14648 and that has to be removed. if anyone wants to add restriction then we can add a config but I don’t see any value in introducing another config just to avoid this warning message. so, this PR fixes this behavior which are causing service outage with this feature upgrade.
Modifications
Remove incorrect restriction that makes Pulsar unusable for broker service deployed on heterogeneous hw configuration with VMs.
Verifying this change
(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: