From 61c2426d90f94f2e6d058802ed5c09025574e517 Mon Sep 17 00:00:00 2001 From: yikeke Date: Fri, 27 Jul 2018 14:28:38 +0800 Subject: [PATCH 1/2] tools: add cluster version Via: https://github.com/pingcap/docs-cn/pull/812 --- tools/pd-control.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/pd-control.md b/tools/pd-control.md index 505699a79c065..6aa7a43c83340 100644 --- a/tools/pd-control.md +++ b/tools/pd-control.md @@ -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. @@ -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. Only when you need to roll back to an earlier version, you can set it manually. + + ```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. From 24f860078dfada0b5ef7ba8605ab61d6c4ef5bba Mon Sep 17 00:00:00 2001 From: yikeke Date: Mon, 30 Jul 2018 11:16:35 +0800 Subject: [PATCH 2/2] tools: address the comment --- tools/pd-control.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/pd-control.md b/tools/pd-control.md index 6aa7a43c83340..62261972911a4 100644 --- a/tools/pd-control.md +++ b/tools/pd-control.md @@ -247,7 +247,7 @@ 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. Only when you need to roll back to an earlier version, you can set it manually. +- `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