Skip to content

Many heartbeat update operations may cause GetRegion timeout #2843

@nolouch

Description

@nolouch

Feature Request

Describe your feature request related problem

As user reports, there are about 200w regions, and the workload is uniform. so there are many region need to update if the flow changed. the qps update_cache is about 9k, which means 9k/s need Locks and more operator in heartbeat needRLocks.
image

Describe the feature you'd like

  • reduce the update operations
  • Alleviate lock contention

Describe alternatives you've considered

  • add a switch to reduce updates when region flow changed.
  • optimize heartbeat with segmented lock

Teachability, Documentation, Adoption, Migration Strategy

  • Go

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/enhancementThe issue or PR belongs to an enhancement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions