Skip to content

[Bug] The UniformLoadShedder strategy fails when the traffic is less than 1000(delta) #21905

@hanmz

Description

@hanmz

Search before asking

  • I searched in the issues and found nothing similar.

Version

3.0

Minimal reproduce step

The cluster configuration information is as follows(other load balacnce configurations remain at default values):
loadBalancerEnabled=true
loadBalancerSheddingEnabled=true
loadBalancerSheddingGracePeriodMinutes=5
minUnloadMessage=0
minUnloadMessageThroughput=0

1、Start the first broker
2、Create a multi-partition topic and distribute the partitions on different bundles
3、Send messages to the topic at a speed less than 1000 TPS(for example 600TPS)
4、After waiting for the send to stabilize, start the second broker node

What did you expect to see?

The second broker is only allocated part of the traffic, and the traffic of the brokers is relatively balanced.

What did you see instead?

The second broker distributes all traffic.
image

Anything else?

No response

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