Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make requests on meta region more available #47393

Open
jackysp opened this issue Oct 4, 2023 · 0 comments
Open

Make requests on meta region more available #47393

jackysp opened this issue Oct 4, 2023 · 0 comments
Labels
type/enhancement The issue or PR belongs to an enhancement.

Comments

@jackysp
Copy link
Member

jackysp commented Oct 4, 2023

Enhancement

Meta region is the most important region for TiDB, if encountered problems when getting data from it, TiDB will not be able to provide services (see #47377). It is best to add some mechanisms to ensure that when it encounters problems, it can be quickly and automatically resolved.

  1. Detect problems and read through follower read. It looks like https://docs.pingcap.com/tidb/stable/system-variables#tidb_load_based_replica_read_threshold-new-in-v700, maybe we can keep it open for the meta region.
  2. Send read requests to both the leader and follower simultaneously, and return as soon as one of them acknowledges, in order to improve availability.
  3. Quickly detect lagging and transfer leader, or set its raft tick to a smaller value.
@jackysp jackysp added the type/enhancement The issue or PR belongs to an enhancement. label Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

No branches or pull requests

1 participant