Skip to content

[Bug] Incorrect TotalNicLimit collected by pulsar #17885

@thetumbled

Description

@thetumbled

Search before asking

  • I searched in the issues and found nothing similar.

Version

2.11

Minimal reproduce step

org.apache.pulsar.broker.loadbalance.LinuxInfoUtils#getTotalNicLimit
图片1

speed value read in /sys/class/net/<iface>/speed is Mbits, not bit.
https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-net

What:		/sys/class/net/<iface>/speed
Date:		October 2009
KernelVersion:	2.6.33
Contact:	netdev@vger.kernel.org
Description:
		Indicates the interface latest or current speed value. Value is
		an integer representing the link speed in **Mbits/sec.**

		Note: this attribute is only valid for interfaces that implement
		the ethtool get_link_ksettings method (mostly Ethernet).

What did you expect to see?

What did you see instead?

Anything else?

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

Labels

type/bugThe PR fixed a bug or issue reported a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions