91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

etcd如何去掉壞掉的節點,添加新節點

發布時間:2020-07-02 23:07:37 來源:網絡 閱讀:810 作者:Bob11111 欄目:云計算

etcd運行了有一段時間,最近發現etcd報警,發現一臺etcd的容器損壞,但是etcd沒有自動將該節點去除;同時k8s添加了一個節點,但是該節點有加入集群,需要重新添加。

[root@A01-R04-I69-122 ~]# etcdctl --endpoints="http://etcd-xxxl:4001" cluster-health
failed to check the health of member ec292d985b723e4 on http://10.187.27.196:4001: Get http://10.187.27.196:4001/health: dial tcp 10.187.27.196:4001: getsockopt: connection timed out
member ec292d985b723e4 is unreachable: [http://10.187.27.196:4001] are all unreachable
member 2727dc2f519c6794 is healthy: got healthy result from http://10.185.243.35:4001
member 4e56d8229082190f is healthy: got healthy result from http://10.187.24.132:4001
member 5780625be722ce57 is healthy: got healthy result from http://10.187.24.134:4001
member ec2aa2bbe0c891b7 is healthy: got healthy result from http://10.187.27.200:4001

發現 10.187.27.196 損壞,記錄下該節點的id ec292d985b723e4

執行刪除命令:
etcdctl --endpoints="http://etcd-xxxl:4001" member remove ec292d985b723e4
Removed member ec292d985b723e4 from cluster

再次查看,損壞節點已經去掉。

etcdctl --endpoints="http://etcd-xxxxxxx:4001" cluster-health
member 2727dc2f519c6794 is healthy: got healthy result from http://10.185.243.35:4001
member 4e56d8229082190f is healthy: got healthy result from http://10.187.24.132:4001
member 5780625be722ce57 is healthy: got healthy result from http://10.187.24.134:4001
member ec2aa2bbe0c891b7 is healthy: got healthy result from http://10.187.27.200:4001

對于新節點,首先聽到etcd,將目錄刪除,然后重啟,重啟后,就會加入該集群。

另外,我們是通過k8s部署的etcd,其他方式,不適合,另外,極力推薦使用k8s的方式進行部署。

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

崇阳县| 潜山县| 堆龙德庆县| 衢州市| 汽车| 铜鼓县| 卓资县| 运城市| 乌拉特中旗| 原平市| 桂平市| 青州市| 越西县| 永胜县| 黄浦区| 肇源县| 嘉禾县| 崇仁县| 怀化市| 毕节市| 泌阳县| 禄丰县| 南漳县| 淮阳县| 临江市| 怀安县| 海原县| 兴仁县| 阳信县| 台前县| 武平县| 曲麻莱县| 八宿县| 巴马| 清丰县| 六盘水市| 应城市| 峨眉山市| 博野县| 马山县| 远安县|