pingcap / pingcap/tidb

decrease the backoff duration for PD rpc

Open
#65,951 1 comment 2 reactions 0 assignees View on GitHub
affects-8.5 component/pd type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Enhancement

The `BoPDRPC` has a base set of 500ms

https://github.com/tikv/client-go/blob/13de69c9c7dbff877bef40a215c128778ea36a1c/config/retry/config.go#L125

That means if PD returns an error or some other invalid result, the request should sleep for several hundred milliseconds and then retry, which makes a long tail for some short query.

Maybe we should decrease the backoff setting of the basic value to make a shorter backoff

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.