| title | summary |
|---|---|
tiup cluster rename |
The `tiup cluster rename` command is used to change the cluster name after it has been deployed. Additional steps are required if the `dashboard_dir` field of `grafana_servers` is configured for the TiUP cluster. The syntax for the command is `tiup cluster rename <old-cluster-name> <new-cluster-name>`. The `-h, --help` option prints help information. The output is the execution log of the tiup-cluster. |
The cluster name is specified when the cluster is deployed. If you want to change the cluster name after the cluster is deployed, you can use the command tiup cluster rename.
Note:
If the
dashboard_dirfield ofgrafana_serversis configured for the TiUP cluster, after you execute the commandtiup cluster renameto rename the cluster, the following additional steps are required:
- For the
*.jsonfiles in the local dashboards directory, update thedatasourcefield of each file to the new cluster name, because the value ofdatasourcemust be the name of the cluster.- Execute the command
tiup cluster reload -R grafana.
tiup cluster rename <old-cluster-name> <new-cluster-name> [flags]<old-cluster-name>: The old cluster name.<new-cluster-name>: The new cluster name.
- Prints help information.
- Data type:
BOOLEAN - This option is disabled by default with the
falsevalue. To enable this option, add this option to the command, and either pass thetruevalue or do not pass any value.
The execution log of the tiup-cluster.