c语言sscanf函数的用法是什么
390
2022-10-31
etcd如何去掉坏掉的节点,添加新节点
etcd运行了有一段时间,最近发现etcd报警,发现一台etcd的容器损坏,但是etcd没有自动将该节点去除;同时k8s添加了一个节点,但是该节点有加入集群,需要重新添加。
[root@A01-R04-I69-122 ~]# etcdctl --endpoints=" cluster-health failed to check the health of member ec292d985b723e4 on Get dial tcp 10.187.27.196:4001: getsockopt: connection timed outmember ec292d985b723e4 is unreachable: [are all unreachablemember 2727dc2f519c6794 is healthy: got healthy result from 4e56d8229082190f is healthy: got healthy result from 5780625be722ce57 is healthy: got healthy result from ec2aa2bbe0c891b7 is healthy: got healthy result from 10.187.27.196 损坏,记录下该节点的id ec292d985b723e4
执行删除命令:etcdctl --endpoints=" member remove ec292d985b723e4Removed member ec292d985b723e4 from cluster
再次查看,损坏节点已经去掉。
etcdctl --endpoints=" cluster-healthmember 2727dc2f519c6794 is healthy: got healthy result from 4e56d8229082190f is healthy: got healthy result from 5780625be722ce57 is healthy: got healthy result from ec2aa2bbe0c891b7 is healthy: got healthy result from http://10.187.27.200:4001
对于新节点,首先听到etcd,将目录删除,然后重启,重启后,就会加入该集群。
另外,我们是通过k8s部署的etcd,其他方式,不适合,另外,极力推荐使用k8s的方式进行部署。
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~