TiKVClient

(Appears on: TiDBConfig)

TiKVClient is the config for tikv client.

FieldDescription
grpc-connection-count
uint
(Optional)

GrpcConnectionCount is the max gRPC connections that will be established with each tikv-server. Optional: Defaults to 16

grpc-keepalive-time
uint
(Optional)

After a duration of this time in seconds if the client doesn’t see any activity it pings the server to see if the transport is still alive. Optional: Defaults to 10

grpc-keepalive-timeout
uint
(Optional)

After having pinged for keepalive check, the client waits for a duration of Timeout in seconds and if no activity is seen even after that the connection is closed. Optional: Defaults to 3

commit-timeout
string
(Optional)

CommitTimeout is the max time which command ‘commit’ will wait. Optional: Defaults to 41s

max-txn-time-use
uint
(Optional)

MaxTxnTimeUse is the max time a Txn may use (in seconds) from its startTS to commitTS. Optional: Defaults to 590

max-batch-size
uint
(Optional)

MaxBatchSize is the max batch size when calling batch commands API. Optional: Defaults to 128

overload-threshold
uint
(Optional)

If TiKV load is greater than this, TiDB will wait for a while to avoid little batch. Optional: Defaults to 200

max-batch-wait-time
time.Duration
(Optional)

MaxBatchWaitTime in nanosecond is the max wait time for batch. Optional: Defaults to 0

batch-wait-size
uint
(Optional)

BatchWaitSize is the max wait size for batch. Optional: Defaults to 8

region-cache-ttl
uint
(Optional)

If a Region has not been accessed for more than the given duration (in seconds), it will be reloaded from the PD. Optional: Defaults to 600

store-limit
int64
(Optional)

If a store has been up to the limit, it will return error for successive request to prevent the store occupying too much token in dispatching level. Optional: Defaults to 0

copr-cache
CoprocessorCache
(Optional)