Skip to content

Commit 9e0bc20

Browse files
yikekelilin90
authored andcommitted
tools: add cluster version in pd-control (#551)
* tools: add cluster version Via: pingcap/docs-cn#812 * tools: address the comment
1 parent bed6822 commit 9e0bc20

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tools/pd-control.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ Usage:
144144
"max-replicas": 3,
145145
"location-labels": ""
146146
}
147+
>> config show cluster-version // Display the current version of the cluster, which is the current minimum version of TiKV nodes in the cluster and does not correspond to the binary version.
148+
"2.0.0"
147149
```
148150

149151
- `max-snapshot-count` controls the maximum number of snapshots that a single store receives or sends out at the same time. The scheduler is restricted by this configuration to avoid taking up normal application resources. When you need to improve the speed of adding replicas or balancing, increase this value.
@@ -245,6 +247,12 @@ The configuration above is global. You can also tune the configuration by config
245247
config set disable-raft-learner true // Disable Raft learner
246248
```
247249
250+
- `cluster-version` is the version of the cluster, which is used to enable or disable some features and to deal with the compatibility issues. By default, it is the minimum version of all normally running TiKV nodes in the cluster. You can set it manually only when you need to roll it back to an earlier version.
251+
252+
```bash
253+
config set cluster-version 1.0.8 // Set the version of the cluster to 1.0.8
254+
```
255+
248256
- `disable-remove-down-replica` is used to disable the feature of automatically deleting DownReplica. When you set it to `true`, PD does not automatically clean up the downtime replicas.
249257
250258
- `disable-replace-offline-replica` is used to disable the feature of migrating OfflineReplica. When you set it to `true`, PD does not migrate the offline replicas.

0 commit comments

Comments
 (0)