Skip to content

Optimize least active load balance. #2540

Closed

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

Activity

  1. self-assigned this
    on Sep 20, 2018
  2. carryxyh commented on Sep 28, 2018

    @carryxyh
    MemberAuthor

    closed via #2172 (comment)

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions