Skip to content

Commit

Permalink
TiKV config: remove allow-remove-leader and raft-msg-flush-interval (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
en-jin19 authored Jan 18, 2022
1 parent eb16fa1 commit 1ce7909
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
1 change: 0 additions & 1 deletion dynamic-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ The following TiKV configuration items can be modified online:
| `raftstore.peer-stale-state-check-interval` | The time interval to check whether a peer is without a leader |
| `raftstore.consistency-check-interval` | The time interval to check consistency |
| `raftstore.raft-store-max-leader-lease` | The longest trusted period of a Raft leader |
| `raftstore.allow-remove-leader` | Determines whether to allow deleting the main switch |
| `raftstore.merge-check-tick-interval` | The time interval for merge check |
| `raftstore.cleanup-import-sst-interval` | The time interval to check expired SST files |
| `raftstore.local-read-batch-size` | The maximum number of read requests processed in one batch |
Expand Down
2 changes: 1 addition & 1 deletion releases/release-5.3.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ In v5.3, the key new features or improvements are as follows:
| TiKV | `memory-usage-limit` | Modified | This configuration item is new in TiDB v5.3.0 and its value is calculated based on storage.block-cache.capacity. |
| TiKV | [`raftstore.store-io-pool-size`](/tikv-configuration-file.md#store-io-pool-size-new-in-v530) | Newly added | The allowable number of threads that process Raft I/O tasks, which is the size of the StoreWriter thread pool. When you modify the size of this thread pool, refer to [Performance tuning for TiKV thread pools](/tune-tikv-thread-performance.md#performance-tuning-for-tikv-thread-pools). |
| TiKV | [`raftstore.raft-write-size-limit`](/tikv-configuration-file.md#raft-write-size-limit-new-in-v530) | Newly added | Determines the threshold at which Raft data is written into the disk. If the data size is larger than the value of this configuration item, the data is written to the disk. When the value of `raftstore.store-io-pool-size` is `0`, this configuration item does not take effect. |
| TiKV | [`raftstore.raft-msg-flush-interval`](/tikv-configuration-file.md#raft-msg-flush-interval-new-in-v530) | Newly added | Determines the interval at which Raft messages are sent in batches. The Raft messages in batches are sent at every interval specified by this configuration item. When the value of `raftstore.store-io-pool-size` is `0`, this configuration item does not take effect. |
| TiKV | `raftstore.raft-msg-flush-interval` | Newly added | Determines the interval at which Raft messages are sent in batches. The Raft messages in batches are sent at every interval specified by this configuration item. When the value of `raftstore.store-io-pool-size` is `0`, this configuration item does not take effect. |
| TiKV | `raftstore.raft-reject-transfer-leader-duration` | Deleted | Determines the smallest duration that a Leader is transferred to a newly added node. |
| PD | [`log.file.max-days`](/pd-configuration-file.md#max-days) | Modified | Controls the maximum number of days that logs are retained for. The default value is changed from `1` to `0`. |
| PD | [`log.file.max-backups`](/pd-configuration-file.md#max-backups) | Modified | Controls the maximum number of logs that are retained for. The default value is changed from `7` to `0`. |
Expand Down
11 changes: 0 additions & 11 deletions tikv-configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -643,11 +643,6 @@ Configuration items related to Raftstore
+ Default value: `"9s"`
+ Minimum value: `0`

### `allow-remove-leader`

+ Determines whether to allow deleting the main switch
+ Default value: `false`

### `merge-max-log-gap`

+ The maximum number of missing logs allowed when `merge` is performed
Expand Down Expand Up @@ -731,12 +726,6 @@ Configuration items related to Raftstore
+ Default value: `1MB`
+ Minimum value: `0`

### `raft-msg-flush-interval` <span class="version-mark">New in v5.3.0</span>

+ Determines the interval at which Raft messages are sent in batches. The Raft messages in batches are sent at every interval specified by this configuration item. When the value of `store-io-pool-size` is `0`, this configuration item does not take effect.
+ Default value: `250us`
+ Minimum value: `0`

## Coprocessor

Configuration items related to Coprocessor
Expand Down

0 comments on commit 1ce7909

Please sign in to comment.