Skip to content

Introduce a new ReplicaReadMode prefer-leader to improve Read availability. #40905

@LykxSassinator

Description

@LykxSassinator

Enhancement

Introduce a new replicaReadMode to TiDB, named as prefer-leader.

This mode can improve the Read availability of TiDB by automatically redirecting the Read flows to valid followers when leader encounters errors, for instance, EBS jitters or network errors. And in normal state, Read flows will still be sent to leader to ensure the performance is normal as leader mode.

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