The following includes JVM related parameters.
- pd addresses, separated by comma
- default: 127.0.0.1:2379
- timeout of grpc request
- default: 600ms
- timeout of scan/delete range grpc request
- default: 20s
- Maximal package size transporting from clients to TiKV Server (ingest API)
- default: 1048576 (1M)
- Maximal batch size transporting from clients to TiKV Server (ingest API)
- default: 32768 (32K)
- time to wait for scattering regions
- default: 300 (5min)
- RawKV default backoff in milliseconds
- default: 20000 (20 seconds)
- whether to enable metrics exporting
- default: false
- the metrics exporting http port
- default: 3140
The following includes ThreadPool related parameters, which can be passed in through JVM parameters.
- the thread pool size of batchGet on client side
- default: 20
- the thread pool size of batchPut on client side
- default: 20
- the thread pool size of batchDelete on client side
- default: 20
- the thread pool size of batchScan on client side
- default: 5
- the thread pool size of deleteRange on client side
- default: 20
- whether to enable
Compare And Set
, set true if usingRawKVClient.compareAndSet
orRawKVClient.putIfAbsent
- default: false
- whether to enable TLS
- default: false
- Trusted certificates for verifying the remote endpoint's certificate, e.g. /home/tidb/ca.pem. The file should contain an X.509 certificate collection in PEM format.
- default: null
- an X.509 certificate chain file in PEM format, e.g. /home/tidb/client.pem.
- default: null
- a PKCS#8 private key file in PEM format. e.g. /home/tidb/client-key.pem.
- default: null
- The interval in seconds to poll the change of TLS context, if a change is detected, the TLS context will be rebuilded.
- default:
"10s"
,"0s"
means disable TLS context reload.
- After a TLS context reloading, the old connections will be forced to shutdown after
tikv.conn.recycle_time
to prevent channel leak. - default:
"60s"
.
- RawKV read timeout in milliseconds. This parameter controls the timeout of
get
getKeyTTL
. - default: 2000 (2 seconds)
- RawKV write timeout in milliseconds. This parameter controls the timeout of
put
putAtomic
putIfAbsent
delete
deleteAtomic
. - default: 2000 (2 seconds)
- RawKV batch read timeout in milliseconds. This parameter controls the timeout of
batchGet
. - default: 2000 (2 seconds)
- RawKV batch write timeout in milliseconds. This parameter controls the timeout of
batchPut
batchDelete
batchDeleteAtomic
. - default: 2000 (2 seconds)
- RawKV scan timeout in milliseconds. This parameter controls the timeout of
batchScan
scan
scanPrefix
. - default: 10000 (10 seconds)
- RawKV clean timeout in milliseconds. This parameter controls the timeout of
deleteRange
deletePrefix
. - default: 600000 (10 minutes)