Skip to content

Optimize least active load balance. #2540

@carryxyh

Description

@carryxyh

There are two places in LeasActiveLoadBalance that need to be optimized.

  1. When calculating the total weight, we use a weight that has not been processed by warmup. When multiple invokers have the same active request and weight, we use the weight of the warmup, which is not uniform.
  2. When multiple invokers have the same active request and weight, we randomly select them by weight. There is a bug here that causes the actual randomness to not be strictly weighted.

The pr to fix this two problem:
#2172

The related issue:
#904

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions