当前位置:网站首页>tiup cluster enable
tiup cluster enable
2022-08-07 03:39:00 【Tim's Shop】
The command tiup cluster enable is used to set the self-start of the cluster service after the machine restarts. This command will go to the specified node and execute systemctl enable to enableAutostart of the service.
Note
When the cluster is all shut down and restarted, the order in which the services are started is determined by the order in which the operating systems of the nodes are started.When the restart sequence is incorrect, in some cases, the restarted cluster still cannot provide services (for example, if TiKV is started first but PD is not started, systemd restarts TiKV several times and fails to find PD, and it will give up).
Syntax
tiup cluster enable
is the cluster to enable autostart.
options
-N, --node
- Specify the node to enable self-startup. The value of this option is a comma-separated list of node IDs. The node ID is tiup-component-cluster-display command.
- Data type:
STRINGS - If this option is not specified, the auto-start of all nodes is enabled by default.
Note
If -R, --role is specified at the same time, then the service in the intersection of them will be started automatically.
-R, --role
- Specify the role to enable auto-start, the value of this option is a comma-separated list of node roles, and the role is tiup-component-cluster-display command.
- Data type:
STRINGS - If this option is not specified, the auto-start of all roles is enabled by default.
Note
If -N, --node is specified at the same time, then the service in the intersection of them will be started automatically.
-h, --help
- Output help information.
- Data type:
BOOLEAN - This option is disabled by default, and the default value is
false.Add this option to the command and pass in thetruevalue or no value to enable this function.
output
Execution log of tiup-cluster.
边栏推荐
猜你喜欢

How to quickly develop an app?Mini programs + plugins are indispensable

每日一题-动态规划

Scrollbar for TreeView in wpf

集合与迭代器

LED驱动程序优化-分层

What tools do I need to create a desktop installer?

小程序的父------------>子的通信

Loss function_similarity calculation_distance calculation

Parse the structure inside the wpf control

危险,请马上替换代码中的BeanUtils
随机推荐
wpf中TreeView的滚动条
Reading Notes - RetinaFace: Single-stage Dense Face Localisation in the Wild
What is SaaS service platform software?
TensorFlow学习记录(五):卷积神经网络
The sword refers to Offer II 029. Sorted circular linked list - pure linked list implementation
Let's talk about lock upgrades
WebApi记录
1002: please three seven writing a maximum number of C language
Day03常用样式
面试字节跳动测试岗被吊打,60天苦修这些笔记,侥幸收获offer
微信小程序中rpx
LED驱动程序优化-分层
tiup cluster disable
微信小程序的在线学习每日签到打卡 项目源码介绍
每日一题-动态规划
基于STM32F103C8T6最小系统板驱动灰度模块进行循迹
How to adjust the game settings of Ark Survival Evolved
Basic usage based on 7.6ElstaicSearch syntax
字符设备驱动
tiup cluster list