You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] incorrect Nic usage collected by pulsar #18881
I searched in the issues and found nothing similar.
Version
all version.
Minimal reproduce step
When retrieve all paths of physical NICs, it did not filter those NICs whose state are down. org.apache.pulsar.broker.loadbalance.LinuxInfoUtils#getPhysicalNICs
As a consequence, we will get a wrong limit value of NIC if loadBalancerOverrideBrokerNicSpeedGbps is enabled.
for example, we have 4 physical nics, but only eth0 and eth1 is enable, and both of their speed is 10Gbps.
2: eth0: state UP
3: eth1: state UP
4: eth2: state DOWN
5: eth3:state DOWN
So, the correct limit value of NIC is 20Gbps, that is 20000000 Kbps. But the limit value collected by pulsar is 40Gbps, that is 40000000 Kbps. this is caused by the bug described above.
Activity
mattisonchao commentedon Dec 12, 2022
I'll take it.