Skip to content

scheduler: better expectation and variance in hot region scheduler #5545

@lhy1024

Description

@lhy1024

Development Task

In 4.0, we use expectation to avoid creating redundant operators after #2297

In 6.3, we use variance to reduce schedule when the cluster has been enough uniform after #4912 and #5286

But we calculate expectation and variance without considering about placement-rules or machine performance, only distinguishing tikv and tiflash.

we need better expectation and variance in hot region scheduler, or could close then they can not work.

  • add config
  • uniform toleranceRatio, stddevThreshold and balancedRatio
  • consider about label

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/developmentThe issue belongs to a development tasks

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions