Repository navigation
[improve][broker] Failed to start broker when Linux load balancer can't get NIC speed - #14648
Conversation
|
linux host has many NICs, There are some NIC that are of type 1 that doesn't expose the speed. I think if let broker fail it's not a good idea. @mattisonchao |
|
If the Linux host has a legitimate NIC but doesn't have the speed. Regardless of how many NICs have speed, we should notify the user to set |
|
@nicoloboschi @eolivelli @michaeljmarshall please continue to take a look from #14537. |
nicoloboschi
left a comment
There was a problem hiding this comment.
Overall LGTM, but I have few questions:
- We should add unit tests for checking the logic
- What if I run the Pulsar tests within a machina with NIC without 'speed' file? The test will fail ?
For instance, I've seen this kind of NIC inside a ubuntu VM with docker installed
@mattisonchao |
This reverts commit 55d8f03.
|
Hi, @Nicklee007 @gaozhangmin @nicoloboschi I changed the logic to fail to start the broker when we can't get the NIC speed (<= 0). |
|
Hi, @nicoloboschi |
|
/pulsarbot rerun-failure-checks |
…oker start fail.
|
@nicoloboschi @gaozhangmin PTAL:) |
|
I'm trying to set up a dev environment using an AWS EC2 instance (tired of fighting my M1 MBP 🥲), but (as @nicoloboschi mentioned) the tests are failing due to not having NIC speed information: I opened #15263 trying to fix the tests but there are way too many of them - I prefer having the tests not depending on external factors, so maybe we should either fix the tests (which isn't too practical since people would add new tests without specifying NIC speed information) or somehow let the tests skip this check? |
- changes in apache#14648 broke running of tests on Linux when there's no ethernet connection
|
This broke unit tests on Linux when there's no ethernet connection. I fixed the problem for all unit tests in #15365 . |
- changes in apache#14648 broke running of tests on Linux when there's no ethernet connection
|
I ran into the same problem with version 2.10 |
|
@duxugang Hi, this PR does not cherry-pick to branch-2.10 |
Motivation
The context here: #14537
The current design is frequently logging an error while ignoring the NIC. The only real course of action for an operator is to reconfigure the broker. It seems like a better course of action to fail on startup so that operators know immediately that they need to fix the configuration instead of finding out sometime later when observing the logs.
Modifications
LinuxBrokerHostUsageImpland extract some Linux operate to another class.Verifying this change
Documentation
no-need-doc