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

add replica read adjuster function in KVSnapshot #540

Merged
merged 5 commits into from
Jul 7, 2022

Conversation

glorv
Copy link
Contributor

@glorv glorv commented Jul 6, 2022

pingcap/tidb#35927 introduced a new follower read type closest-adaptive to allow send request to the nearest replica based on the response size. This can help minimize the overhead of the extra readIndex raft propose when the request is small. This PR add a new checker function in KVSnapshot so we can also apply this logic to Get/BatchGet requests.

Signed-off-by: glorv <glorvs@163.com>
@glorv glorv force-pushed the adjust-replica-read branch from c20dcc6 to c83ad4a Compare July 6, 2022 08:15
glorv added 3 commits July 6, 2022 17:03
Signed-off-by: glorv <glorvs@163.com>
Signed-off-by: glorv <glorvs@163.com>
Signed-off-by: glorv <glorvs@163.com>
@glorv
Copy link
Contributor Author

glorv commented Jul 6, 2022

@disksing @youjiali1995 PTAL

@disksing disksing merged commit 114ba40 into tikv:master Jul 7, 2022
@glorv glorv deleted the adjust-replica-read branch July 7, 2022 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants