TiKVRaftstoreConfig
(Appears on: TiKVConfig)
TiKVRaftstoreConfig is the configuration of TiKV raftstore component.
Field | Description |
---|---|
sync-log bool | (Optional) true for high reliability, prevent data loss when power failure. Optional: Defaults to true |
prevote bool | (Optional) Optional: Defaults to true |
raft-base-tick-interval string | (Optional) raft-base-tick-interval is a base tick interval (ms). |
raft-heartbeat-ticks int64 | (Optional) |
raft-election-timeout-ticks int64 | (Optional) |
raft-entry-max-size string | (Optional) When the entry exceed the max size, reject to propose it. Optional: Defaults to 8MB |
raft-log-gc-tick-interval string | (Optional) Interval to gc unnecessary raft log (ms). Optional: Defaults to 10s |
raft-log-gc-threshold int64 | (Optional) A threshold to gc stale raft log, must >= 1. Optional: Defaults to 50 |
raft-log-gc-count-limit int64 | (Optional) When entry count exceed this value, gc will be forced trigger. Optional: Defaults to 72000 |
raft-log-gc-size-limit string | (Optional) When the approximate size of raft log entries exceed this value gc will be forced trigger. Optional: Defaults to 72MB |
raft-entry-cache-life-time string | (Optional) When a peer is not responding for this time, leader will not keep entry cache for it. |
raft-reject-transfer-leader-duration string | (Optional) When a peer is newly added, reject transferring leader to the peer for a while. |
split-region-check-tick-interval string | (Optional) Interval (ms) to check region whether need to be split or not. Optional: Defaults to 10s |
region-split-check-diff string | (Optional) / When size change of region exceed the diff since last check, it / will be checked again whether it should be split. Optional: Defaults to 6MB |
region-compact-check-interval string | (Optional) / Interval (ms) to check whether start compaction for a region. Optional: Defaults to 5m |
clean-stale-peer-delay string | (Optional) delay time before deleting a stale peer Optional: Defaults to 10m |
region-compact-check-step int64 | (Optional) / Number of regions for each time checking. Optional: Defaults to 100 |
region-compact-min-tombstones int64 | (Optional) / Minimum number of tombstones to trigger manual compaction. Optional: Defaults to 10000 |
region-compact-tombstones-percent int64 | (Optional) / Minimum percentage of tombstones to trigger manual compaction. / Should between 1 and 100. Optional: Defaults to 30 |
pd-heartbeat-tick-interval string | (Optional) Optional: Defaults to 60s |
pd-store-heartbeat-tick-interval string | (Optional) Optional: Defaults to 10s |
snap-mgr-gc-tick-interval string | (Optional) |
snap-gc-timeout string | (Optional) |
lock-cf-compact-interval string | (Optional) Optional: Defaults to 10m |
lock-cf-compact-bytes-threshold string | (Optional) Optional: Defaults to 256MB |
notify-capacity int64 | (Optional) |
messages-per-tick int64 | (Optional) |
max-peer-down-duration string | (Optional) / When a peer is not active for max-peer-down-duration / the peer is considered to be down and is reported to PD. Optional: Defaults to 5m |
max-leader-missing-duration string | (Optional) / If the leader of a peer is missing for longer than max-leader-missing-duration / the peer would ask pd to confirm whether it is valid in any region. / If the peer is stale and is not valid in any region, it will destroy itself. |
abnormal-leader-missing-duration string | (Optional) / Similar to the max-leader-missing-duration, instead it will log warnings and / try to alert monitoring systems, if there is any. |
peer-stale-state-check-interval string | (Optional) |
leader-transfer-max-log-lag int64 | (Optional) |
snap-apply-batch-size string | (Optional) |
consistency-check-interval string | (Optional) Interval (ms) to check region whether the data is consistent. Optional: Defaults to 0 |
report-region-flow-interval string | (Optional) |
raft-store-max-leader-lease string | (Optional) The lease provided by a successfully proposed and applied entry. |
right-derive-when-split bool | (Optional) Right region derive origin region id when split. |
allow-remove-leader bool | (Optional) |
merge-max-log-gap int64 | (Optional) / Max log gap allowed to propose merge. |
merge-check-tick-interval string | (Optional) / Interval to re-propose merge. |
use-delete-range bool | (Optional) |
cleanup-import-sst-interval string | (Optional) Optional: Defaults to 10m |
apply-max-batch-size int64 | (Optional) |
apply-pool-size int64 | (Optional) Optional: Defaults to 2 |
store-max-batch-size int64 | (Optional) |
store-pool-size int64 | (Optional) Optional: Defaults to 2 |
hibernate-regions bool | (Optional) |