Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 2.5 KB

tiup-component-cluster-disable.md

File metadata and controls

50 lines (33 loc) · 2.5 KB
title summary
tiup cluster disable
The `tiup cluster disable` command is used to disable the auto-enabling of cluster service after restarting the machine. It executes `systemctl disable <service>` on the specified node. Options include -N for specifying nodes and -R for specifying roles. The output is the execution log of the tiup-cluster.

tiup cluster disable

After restarting the machine on which the cluster service is located, the cluster service will be automatically enabled. To disable the auto-enabling of cluster service, you can use the tiup cluster disable command. This command executes systemctl disable <service> on the specified node to disable the auto-enabling of the service.

Syntax

tiup cluster disable <cluster-name> [flags]

<cluster-name>: the cluster whose service auto-enabling is to be disabled.

Options

-N, --node

  • Specifies the nodes whose service auto-enabling is to be disabled. 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 cluster display command.
  • Data type: STRINGS
  • If this option is not specified in the command, the auto-enabling of all nodes is disabled by default.

Note:

If the -R, --role option is specified at the same time, the auto-enabling of services that match both the specifications of -N, --node and -R, --role is disabled.

-R, --role

  • Specifies the roles whose service auto-enabling is to be disabled. 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 cluster display command.
  • Data type: STRINGS
  • If this option is not specified in the command, the auto-enabling of all roles is disabled by default.

Note:

If the -N, --node option is specified at the same time, the auto-enabling of services that match both the specifications of -N, --node and -R, --role is disabled.

-h, --help

  • Prints the help information.
  • Data type: BOOLEAN
  • This option is disabled by default and its default value is false. To enable this option, you can add this option to the command, and pass the true value or do not pass any value.

Output

The execution log of the tiup-cluster.

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