-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
tikv: remove the update leader backoff (#17541) #19764
tikv: remove the update leader backoff (#17541) #19764
Conversation
Signed-off-by: ti-srebot <[email protected]>
/run-all-tests |
@gengliqi please accept the invitation then you can push to the cherry-pick pull requests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gengliqi please resolve the conflicts.
@gengliqi please resolve the conflicts. |
Signed-off-by: gengliqi <[email protected]>
Resolved, PTAL.
|
/run-all-tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/run-unit-test |
@zz-jason, @lzmhhh123, @lysu, @disksing, @sre-bot, PTAL. |
/run-unit-test |
@zz-jason, @lzmhhh123, @disksing, @lysu, @sre-bot, PTAL. |
/run-all-tests |
@zz-jason, @lzmhhh123, @disksing, @lysu, @sre-bot, PTAL. |
/merge |
Sorry @disksing, you don't have permission to trigger auto merge event on this branch. |
@zz-jason, @lzmhhh123, @disksing, @lysu, @sre-bot, PTAL. |
/merge |
Sorry @zz-jason, you don't have permission to trigger auto merge event on this branch. |
/merge |
/merge |
/run-all-tests |
@ti-srebot merge failed. |
/run-all-tests |
@ti-srebot merge failed. |
/run-integration-common-test |
/run-unit-test |
/run-unit-test |
cherry-pick #17541 to release-3.0
Signed-off-by: Liqi Geng [email protected]
What problem does this PR solve?
Issue Number: tikv/tikv#7941
Problem Summary:
When a down TiKV recovers, PD will transfer many leaders to this TiKV. I found it will cause that QPS recovers so slowly because of TiDB backoff strategy.
If a region's leader has transferred, the request to this region may get a
NotLeader
error with a correct leader in most cases. Then TiDB will backoff at least 1ms(then 2,4,8,10ms) which is very wasteful.In tikv/tikv#7941, it's showed that the QPS recover time is reduced to 2-4min if we remove the update leader backoff, while the original time is 10min.
What is changed and how it works?
What's Changed:
Remove the update leader backoff.
How it Works:
Related changes
Check List
Tests
Side effects
No.
Release note