Sign InTry Free

tiup cluster enable

The tiup cluster enable command is used to set the auto-enabling of the cluster service after a machine is restarted. This command enables the auto-enabling of the service by executing systemctl enable <service> at the specified node.

Syntax

tiup cluster enable <cluster-name> [flags]

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

Options

-N, --node

  • Specifies the nodes whose service auto-enabling is to be enabled. 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 enabled by default.

-R, --role

  • Specifies the roles whose service auto-enabling is to be enabled. 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 enabled by default.

-h, --help

  • Prints the help information.
  • Data type: BOOLEAN
  • This option is disabled by default with the false value. To enable this option, add this option to the command, and either 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

Was this page helpful?

Download PDFRequest docs changesAsk questions on Discord
Playground
New
One-stop & interactive experience of TiDB's capabilities WITHOUT registration.
Products
TiDB
TiDB Dedicated
TiDB Serverless
Pricing
Get Demo
Get Started
© 2024 PingCAP. All Rights Reserved.
Privacy Policy.