| title | summary |
|---|---|
tiup cluster restart |
The `tiup cluster restart` command is used to restart services in a specified cluster. During the restart, the services are unavailable. You can specify nodes or roles to be restarted using the `-N, --node` and `-R, --role` options. The output is the log of the service restart process. |
The command tiup cluster restart is used to restart all or some of the services of the specified cluster.
Note:
During the restart process, the related services are unavailable for a period of time.
tiup cluster restart <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.
- Specifies the nodes to be restarted. 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 displaycommand. - Data type:
STRING - If this option is not specified, TiUP restarts all nodes by default.
Note:
If the option
-R, --roleis specified at the same time, TiUP restarts service nodes that match both the requirements of-N, --nodeand-R, --role.
- Specified the roles of nodes to be restarted. The value of this option is a comma-separated list of the roles of the nodes. You can get the roles of the nodes from the second column of the cluster status table returned by the
tiup cluster displaycommand. - Data type:
STRING - If this option is not specified, TiUP restarts nodes of all roles by default.
Note:
If the option
-N, --nodeis specified at the same time, TiUP restarts service nodes that match both the requirements of-N, --nodeand-R, --role.
- Prints help information.
- Data type:
BOOLEAN - This option is disabled by default with the
falsevalue. To enable this option, add this option to the command, and either pass thetruevalue or do not pass any value.
The log of the service restart process.