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 experimental improvements to replica selector #1109

Conversation

zyguan
Copy link
Contributor

@zyguan zyguan commented Jan 10, 2024

  • pick avoid too frequent logs #1100
  • [stale read] support increasing timeout when retry leader
  • [stale read] support disabling retry follower when leader is unavailable

Signed-off-by: zyguan <zhongyangguan@gmail.com>
@cfzjywxk cfzjywxk requested review from cfzjywxk and you06 March 5, 2024 01:46
@cfzjywxk
Copy link
Contributor

cfzjywxk commented Mar 5, 2024

@zyguan @crazycs520 @MyonKeminta @you06
We need to revisit this PR as the read index confirm of follower read is quite slow and it does not help increase the request success rate but cause read pool tasks to accumulate.

Comment on lines 92 to 93
selectorExpOpts ReplicaSelectorExperimentalOptions
selectorExpOptsLock sync.RWMutex
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about use atomic.Value to avoid use global mutex.

Signed-off-by: zyguan <zhongyangguan@gmail.com>
Signed-off-by: zyguan <zhongyangguan@gmail.com>
@crazycs520
Copy link
Contributor

@MyonKeminta @cfzjywxk PTAL

@cfzjywxk cfzjywxk merged commit 18d0dab into tikv:tidb-6.5-with-kv-timeout-feature May 14, 2024
7 of 9 checks passed
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.

None yet

3 participants