mirror of https://github.com/tikv/client-go.git
make cop request timeout a config paramter (#865)
* update Signed-off-by: Spade A <u6748471@anu.edu.au> * update Signed-off-by: Spade A <u6748471@anu.edu.au> * update Signed-off-by: Spade A <u6748471@anu.edu.au> * update Signed-off-by: Spade A <u6748471@anu.edu.au> --------- Signed-off-by: Spade A <u6748471@anu.edu.au>
This commit is contained in:
parent
5e3e38b270
commit
e540aa3b96
|
|
@ -81,6 +81,9 @@ type TiKVClient struct {
|
||||||
// StoreLivenessTimeout is the timeout for store liveness check request.
|
// StoreLivenessTimeout is the timeout for store liveness check request.
|
||||||
StoreLivenessTimeout string `toml:"store-liveness-timeout" json:"store-liveness-timeout"`
|
StoreLivenessTimeout string `toml:"store-liveness-timeout" json:"store-liveness-timeout"`
|
||||||
CoprCache CoprocessorCache `toml:"copr-cache" json:"copr-cache"`
|
CoprCache CoprocessorCache `toml:"copr-cache" json:"copr-cache"`
|
||||||
|
// CoprReqTimeout is the timeout for a single coprocessor request
|
||||||
|
// Note: this is a transitional modification, and it will be removed if it's dynamic configurable version is ready.
|
||||||
|
CoprReqTimeout time.Duration `toml:"copr-req-timeout" json:"copr-req-timeout"`
|
||||||
// TTLRefreshedTxnSize controls whether a transaction should update its TTL or not.
|
// TTLRefreshedTxnSize controls whether a transaction should update its TTL or not.
|
||||||
TTLRefreshedTxnSize int64 `toml:"ttl-refreshed-txn-size" json:"ttl-refreshed-txn-size"`
|
TTLRefreshedTxnSize int64 `toml:"ttl-refreshed-txn-size" json:"ttl-refreshed-txn-size"`
|
||||||
ResolveLockLiteThreshold uint64 `toml:"resolve-lock-lite-threshold" json:"resolve-lock-lite-threshold"`
|
ResolveLockLiteThreshold uint64 `toml:"resolve-lock-lite-threshold" json:"resolve-lock-lite-threshold"`
|
||||||
|
|
@ -150,6 +153,7 @@ func DefaultTiKVClient() TiKVClient {
|
||||||
AdmissionMaxResultMB: 10,
|
AdmissionMaxResultMB: 10,
|
||||||
AdmissionMinProcessMs: 5,
|
AdmissionMinProcessMs: 5,
|
||||||
},
|
},
|
||||||
|
CoprReqTimeout: 60 * time.Second,
|
||||||
|
|
||||||
ResolveLockLiteThreshold: 16,
|
ResolveLockLiteThreshold: 16,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue