缩容是什么意思_梯度压缩

缩容是什么意思_梯度压缩TiKV在线缩容

大家好,又见面了,我是你们的朋友全栈君。如果您正在找激活码,请点击查看最新教程,关注关注公众号 “全栈程序员社区” 获取激活教程,可能之前旧版本教程已经失效.最新Idea2022.1教程亲测有效,一键激活。

Jetbrains全系列IDE稳定放心使用

一、查看集群状态

 tiup cluster display cluster-default

二、进行缩容

# tiup cluster scale-in cluster-default  -N "x.x.x.x:20160"
Starting component `cluster`: /root/.tiup/components/cluster/v1.7.0/tiup-cluster scale-in cluster-default -N x.x.x.x:20160
This operation will delete the x.x.x.x:20160 nodes in `cluster-default` and all their data.
Do you want to continue? [y/N]:(default=N) y
Scale-in nodes...
+ [ Serial ] - SSHKeySet: privateKey=/root/.tiup/storage/cluster/clusters/cluster-default/ssh/id_rsa, publicKey=/root/.tiup/storage/cluster/clusters/cluster-default/ssh/id_rsa.pub
+ [Parallel] - UserSSH: user=tidb, host=x.x.x.x
+ [ Serial ] - ClusterOperate: operation=ScaleInOperation, options={Roles:[] Nodes:[x.x.x.x:20160] Force:false SSHTimeout:5 OptTimeout:120 APITimeout:300 IgnoreConfigCheck:false NativeSSH:false SSHType: Concurrency:5 SSHProxyHost: SSHProxyPort:22 SSHProxyUser:root SSHProxyIdentity:/root/.ssh/id_rsa SSHProxyUsePassword:false SSHProxyTimeout:5 CleanupData:false CleanupLog:false RetainDataRoles:[] RetainDataNodes:[] ShowUptime:false DisplayMode:default Operation:StartOperation}
The component `tikv` will become tombstone, maybe exists in several minutes or hours, after that you can use the prune command to clean it
+ [ Serial ] - UpdateMeta: cluster=cluster-default, deleted=`''`
+ [ Serial ] - UpdateTopology: cluster=cluster-default
+ Refresh instance configs
  - Regenerate config pd -> x.x.x.x:2379 ... Done
  - Regenerate config pd -> x.x.x.x:2379 ... Done
  - Regenerate config pd -> x.x.x.x:2379 ... Done
  - Regenerate config tikv -> x.x.x.x:20160 ... Done
  - Regenerate config tikv -> x.x.x.x:20160 ... Done
  - Regenerate config tikv -> x.x.x.x:20160 ... Done
  - Regenerate config tidb -> x.x.x.x:4000 ... Done
  - Regenerate config tiflash -> x.x.x.x:9000 ... Done
  - Regenerate config prometheus -> x.x.x.x:9090 ... Done
  - Regenerate config grafana -> x.x.x.x:3000 ... Done
  - Regenerate config alertmanager -> x.x.x.x:9093 ... Done
+ [ Serial ] - SystemCtl: host=x.x.x.x action=reload prometheus-9090.service
Scaled cluster `cluster-default` in successfully

三、销毁节点

Scale-in后,节点状态是Tombstone

缩容是什么意思_梯度压缩

 tiup cluster prune cluster-default  销毁

注: 如果Server在内网环境下,下线的时候代码中会访问”github.com/pingcap/tiup/pkg/cluster/executor“地址,所以会报错;

“”stderr”: “”, “__hash__”: “1d1478dbec0d06ef5e909d3323331914538d4cb0”, “__func__”: “github.com/pingcap/tiup/pkg/cluster/executor.(*CheckPointExecutor).Execute“, “hit”: false}”

如果失败,可以添加–force强制销毁

 

tiup cluster prune cluster-default --force

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/190060.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • 六轴机器人轨迹规划之五段位置s曲线插补

    六轴机器人轨迹规划之五段位置s曲线插补1 轨迹规划的定义轨迹规划 trajectorypl 是运动规划 motionplanni 研究的主要内容 运动规划指的是运动插补 在起始点和终止点之间插入中间点序列 实现沿着轨迹的平稳运动 运动控制包含路径规划 pathplanning 和轨迹规划 路径规划是规划位置 在起终点之间经过的路径点 轨迹规划是规划时间 将路径点与时间相对应 对于我们的六轴机器人而言轨

    2025年6月27日
    3
  • Linux Shell循环结构

    Linux Shell循环结构fi}&donewaitecho“MissionCompleted.”*for循环语句实现文件中批量用户创建“`shell[root@hdp-1shell]#catusers_from_file.shIFS=$’\n’forlinein`cat$1`doif[${#line}-eq0];thencontinuefiuser=`echo”$line”|awk'{print$1}’`pass=`echo”$line”|a

    2022年7月24日
    11
  • ubuntu分区方案(合并分区)

    MostPCoperatingsystemsstillworkwithanancientdiskpartitionschemethathistoricallymakesdistinctionbetweenprimaryandextendedpartitions.Italsoplacesalimitationforfourprimarypart

    2022年4月14日
    529
  • 可靠性测试的基础知识——可靠性的计算方法

    可靠性测试的基础知识——可靠性的计算方法计算机系统的可靠性从它开始运行(t=0)到某时刻t这段时间内能正常运行的概率,用R(t)表示。失效率指单位时间内失效的元件数与元件总数的比例,以λ表示,当λ为常数时,可靠性与失效率的关系为:R

    2022年7月4日
    27
  • Vue Router 的params和query传参的使用和区别(详尽)「建议收藏」

    Vue Router 的params和query传参的使用和区别(详尽)「建议收藏」首先简单来说明一下$router和$route的区别//$router:是路由操作对象,只写对象//$route:路由信息对象,只读对象//操作路由跳转this.$router.push({name:’hello’,params:{name:’word’,age:’11’}})//读取…

    2022年7月11日
    29
  • excel中如何隐藏列和取消隐藏列[通俗易懂]

    excel中如何隐藏列和取消隐藏列[通俗易懂]https://jingyan.baidu.com/article/148a192191dc9a4d71c3b11c.htmlexcel如何隐藏列1先看下原表格是怎么样的。2隐藏列方法一:首

    2022年8月2日
    6

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号