tiup dm edit-config

If you need to modify the cluster service configuration after the cluster is deployed, you can use the tiup dm edit-config command that starts an editor for you to modify the topology file. of the specified cluster. This editor is specified in the $EDITOR environment variable by default. If the $EDITOR environment variable does not exist, the vi editor is used.

tiup dm edit-config - 图1

Note

  • When you modify the configuration, you cannot add or delete machines. For how to add machines, see Scale out a cluster. For how to delete machines, see Scale in a cluster.
  • After you execute the tiup dm edit-config command, the configuration is modified only on the control machine. Then you need to execute the tiup dm reload command to reload the configuration.

Syntax

  1. tiup dm edit-config <cluster-name> [flags]

<cluster-name>: the cluster to operate on.

Option

-h, —help

  • Prints the help information.
  • Data type: BOOLEAN
  • Default: false

Output

  • Normally, no output.
  • If you have mistakenly modified the fields that cannot be modified, when you save the file, an error is reported, reminding you to edit the file again. For the fields that cannot be modified, see the topology file.

<< Back to the previous page - TiUP DM command list