当前位置:网站首页>tiup集群缩小
tiup集群缩小
2022-08-07 17:26:00 【Tim's Shop】
tiup cluster scale-in command is used to scale down the cluster, which means that the service goes offline. The specified node will eventually be removed from the cluster and the remaining related files will be deleted.
Offline Special Handling
Because the offline of TiKV, TiFlash and TiDB Binlog components is asynchronous (the removal operation needs to be performed through the API first) and the offline process takes a long time (it needs to continuously observe whether the node has been successfully offline), so TiKV, TiFlash and TiDB Binlog components do special treatment:
- Operations to TiKV, TiFlash and TiDB Binlog components:
- tiup-cluster exits directly after taking it offline through the API without waiting for the offline to complete
- Execute
tiup cluster displayto check the status of the offline node and wait for its status to change to Tombstone - Execute the
tiup cluster prunecommand to clean up the Tombstone nodes, which does the following:- Stop the service of the node that has gone offline
- Clean up related data files of nodes that have been offline
- Update the topology of the cluster and remove nodes that have been offline
- Operations to other components
- When the PD component is offline, the specified node will be deleted from the cluster through the API (this process is very fast), and then the service of the specified PD will be stopped and the relevant data files of the node will be cleared
- When other components are offline, directly stop and clear the related data files of the node
Syntax
tiup cluster scale-in
is the name of the cluster to be operated. If you forget the cluster name, you can pass Cluster ListView.
options
-N, --node (strings, no default value, must be non-null)
Select the node to be scaled down. If multiple nodes are scaled down, separate them with commas.
--force
- In some cases, the host of the node that may be scaled down has been down, resulting in the inability to connect to the node through SSH for operation. At this time, you can use the
--forceoption to force itRemove from the cluster. - 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.
Warning
When using this option to forcefully remove TiKV / TiFlash nodes that are in service and offline, these nodes will be deleted directly without waiting for data scheduling to complete, so there is a high risk of data loss in this scenario.This option is not recommended for nodes that are not down.
--transfer-timeout (uint, default 300)
When shrinking PD or TiKV, the leader of the shrinking node will be migrated to other nodes first. The migration process will take a certain time. You can set the longest time by setting --transfer-timeoutWaiting time (in seconds). After the timeout, waiting for the direct scaling service will be skipped.
Note
If there is a situation of skipping and waiting for direct scaling, the service performance may experience jitter.
-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
Scale down log
边栏推荐
猜你喜欢
随机推荐
JNI study
如何增加开机启动项 如何调整开机启动项
win7系统运行游戏不兼容怎么办 win7电脑不兼容游戏的解决方法
chrome滚动条样式修改怎么操作 chrome浏览器滚动条样式定制设置方法
Concurrent programming essays necessary for interviews
win7nvidia控制面板在哪 win7系统怎么打开nvidia控制面板
How to adjust the computer settings for eye protection in win7 _ win7 eye protection color setting method
基于FPGA温湿度采集(AHT10)
怎么清理电脑C盘 win7清理电脑c盘垃圾文件方法介绍
2018年最新Win7激活码 win7产品密钥永久激活 win7密钥激活码...
自动化测试的7个步骤
GC垃圾收集
MySQL面试必备(三)事务篇
C language - character reverse order ( gets( ) function)
Correct the classpath of your application so that it contains compatible versions of the classes org
一文看懂Filter过滤器
Technical analysis of development of digital currency spot contract exchange system
How to format Windows 7 laptop How to format Windows 7 laptop
运行关机命令是什么 电脑运行自动关机的指令是什么
为什么电脑打印时显示脱机_电脑打印时显示脱机怎么办









