apache / apache/pulsar

[Bug] Broker load rebalance uneffective in virtual machine,failed to find NICs while "/virtual/" in the realpath

Open
#18,275 1 comment 0 reactions 0 assignees View on GitHub
Stale type/bug
Dominant language
Java
Stars
15.3k
Forks
3.8k
Avg merge
1d 14h
Merged PRs (30d)
160

Description

### Search before asking

- [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.

### Version

tlinux(CentOS)
pulsar-2.10.1

### Minimal reproduce step

Deploy brokers on virtual machines.

### What did you expect to see?

Broker auto load rebalance effective.

### What did you see instead?

![企业微信截图_16669270641771](https://user-images.githubusercontent.com/28603029/199149961-2f12d3d8-6ac9-4dd4-ad39-b988b1e8f6aa.png)
![image](https://user-images.githubusercontent.com/28603029/199150318-164e513a-17c0-4ca3-9e38-8b45cadc3773.png)
![image](https://user-images.githubusercontent.com/28603029/199150622-833a5a41-3690-49bc-a02c-69819dc2b1f6.png)
According to the code, seems that we can't get bandwidthin&out correctlly in virtual machine , which made the broker load rebalance uneffective with ThresholdShedder strategy.

### Anything else?

It's there any plans to support this scene?Or some methods to make it effective in virtual machine?

### Are you willing to submit a PR?

- [ ] I'm willing to submit a PR!

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with brokers deployed on virtual machines using Pulsar 2.10.1 on CentOS, then inspect the broker load-rebalance path and the ThresholdShedder strategy mentioned in the report. Compare bandwidth-in and bandwidth-out detection with the reported realpath containing "/virtual/". Done means identifying why NICs are not found and confirming effective broker load rebalancing in this environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.