Skip to content

txnkv: decrease some max and base backoff time#388

Merged
youjiali1995 merged 2 commits intotikv:masterfrom
youjiali1995:decrease-some-backoff
Dec 6, 2021
Merged

txnkv: decrease some max and base backoff time#388
youjiali1995 merged 2 commits intotikv:masterfrom
youjiali1995:decrease-some-backoff

Conversation

@youjiali1995
Copy link
Contributor

Signed-off-by: youjiali1995 zlwgx1023@gmail.com

  1. Decrease some MaxBackoff to its old value.
  2. Decrease the base backoff time of BoTxnLockFast from 100ms to 10ms, because 100ms is too big to endure for a small read request.
  3. Decrease the base backoff time of BoTxnLock from 200ms to 100ms as the same reason for read. Because BoTxnLock is seldom used, I didn't decrease it a lot.
Signed-off-by: youjiali1995 <zlwgx1023@gmail.com>
Copy link
Collaborator

@sticnarf sticnarf left a comment

Choose a reason for hiding this comment

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

It looks good to decrease base of TxnLockFast to 10ms

Signed-off-by: youjiali1995 <zlwgx1023@gmail.com>
@youjiali1995 youjiali1995 merged commit c0e8766 into tikv:master Dec 6, 2021
@youjiali1995 youjiali1995 deleted the decrease-some-backoff branch December 6, 2021 07:29
MyonKeminta pushed a commit to MyonKeminta/client-go that referenced this pull request Dec 13, 2021
Signed-off-by: youjiali1995 <zlwgx1023@gmail.com> Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
huangnauh pushed a commit to huangnauh/client-go that referenced this pull request Mar 4, 2022
 Signed-off-by: youjiali1995 <zlwgx1023@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants