Skip to content

Commit

Permalink
tools: add cluster version in pd-control (pingcap#551)
Browse files Browse the repository at this point in the history
* tools: add cluster version

Via: pingcap/docs-cn#812

* tools: address the comment
  • Loading branch information
yikeke authored and lilin90 committed Jul 30, 2018
1 parent bed6822 commit 9e0bc20
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tools/pd-control.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ Usage:
"max-replicas": 3,
"location-labels": ""
}
>> 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.
"2.0.0"
```

- `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.
Expand Down Expand Up @@ -245,6 +247,12 @@ The configuration above is global. You can also tune the configuration by config
config set disable-raft-learner true // Disable Raft learner
```
- `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.
```bash
config set cluster-version 1.0.8 // Set the version of the cluster to 1.0.8
```
- `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.
- `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.
Expand Down

0 comments on commit 9e0bc20

Please sign in to comment.