Skip to content

Conversation

@yx9o
Copy link
Contributor

@yx9o yx9o commented Nov 15, 2025

Outbound baseline bandwidth is configured as networkBaselineBandwidth * 5, but refillToken and metrics calculation were still using inbound baseline.
This caused dashboard outbound available bandwidth to always show negative values.
image

@yx9o yx9o changed the title fix(core): fix outbound bandwidth limiter token refill and metrics ba… fix(core): fix outbound bandwidth limiter token refill and metrics baseline Nov 15, 2025
@superhx
Copy link
Collaborator

superhx commented Nov 15, 2025

The negative values are caused by actual network exhaustion.

networkBaselineBandwidth * 5 is the max token size for the network bursting.

The metrics mean that the available bandwidth = network baseline - network consumption rate

@yx9o
Copy link
Contributor Author

yx9o commented Nov 15, 2025

In our actual production scenarios, outbound traffic is often larger than inbound traffic; for example, it's common for multiple groups to consume the same topic. Therefore, the baseline bandwidth of the outbound traffic should be adjusted to be larger than the baseline bandwidth of the inbound traffic. Otherwise, this metric will always be negative, making it difficult to determine the actual outbound bandwidth.

@superhx
Copy link
Collaborator

superhx commented Nov 15, 2025

In our actual production scenarios, outbound traffic is often larger than inbound traffic; for example, it's common for multiple groups to consume the same topic. Therefore, the baseline bandwidth of the outbound traffic should be adjusted to be larger than the baseline bandwidth of the inbound traffic. Otherwise, this metric will always be negative, making it difficult to determine the actual outbound bandwidth.

In AWS / GCP / Azure, the inbound network and the outbound network are isolated. So setting the same baseline of the inbound network and outbound network is fine.

Is your environment's network shared by both inbound and outbound?

@yx9o
Copy link
Contributor Author

yx9o commented Nov 15, 2025

Um, we are using it in a self-built data center, where the bandwidth is relatively sufficient. The outbound traffic is many times that of the inbound traffic. We would like to set different baseline bandwidths for the inbound and outbound traffic. Do you have any good suggestions for modification?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants