HomeMogDBMogDB StackUqbar
v2.0

Documentation:v2.0

Supported Versions:

Other Versions:

Rename Cluster

Cluster Name

Before installing a cluster, PTK needs to create a configuration file in which the ClusterName field is used to store cluster name information.

In the process of using PTK, you need to specify the cluster name to differentiate between clusters for effective management, so the cluster name cannot be duplicated in PTK.

Since version 1.5.0, PTK provides a command to change the cluster name after installation.

Show Cluster Name Information

The ptk ls command can be used to show the cluster name and basic information about the cluster at the time of installation.

Rename Cluster

As a general rule, cluster names are generally not changed after the configuration file is created and the cluster installation is complete. However, in some cases, when we manage several clusters, it is important to differentiate the names. For this reason, we provide the rename command for renaming clusters. The command format is as follows:

ptk cluster -n <CLUSTER_NAME> rename -N <NewClusterName>
  • <CLUSTER_NAME>: The name of the cluster for the current operation.
  • <NewClusterName>: The new cluster name.

Note: When changing the name of the new cluster, you need to pay attention to whether the name of the cluster is duplicated with the name of the cluster managed by the current PTK, otherwise there will be an error message.

After executing the rename command, the log of rename cluster success will be printed, which indicates that the cluster name has been successfully changed.

Copyright © 2011-2024 www.enmotech.com All rights reserved.