tiup dm stop
The tiup dm stop
command is used to stop all or part of the services of the specified cluster.
Syntax
tiup dm stop <cluster-name> [flags]
<cluster-name>
: the name of the cluster to operate on. If you forget the cluster name, you can check it with the cluster list command.
Options
-N, --node
- Specifies the nodes to be stopped. If not specified, all nodes are stopped. The value of this option is a comma-separated list of node IDs. You can get the node IDs from the first column of the cluster status table returned by the
tiup dm display
command. - Data type:
STRINGS
- If this option is not specified in the command, all nodes are selected by default.
-R, --role
- Specifies the roles to be stopped. If not specified, all roles are stopped. The value of this option is a comma-separated list of node roles. You can get the roles of nodes from the second column of the cluster status table returned by the
tiup dm display
command. - Data type:
STRINGS
- If this option is not specified in the command, all roles are selected by default.
-h, --help
- Prints the help information.
- Data type:
BOOLEAN
- Default: false
Output
The log of stopping the service.