"member-dir":"/var/lib/etcd/member","force-new-cluster":false,"heartbeat-interval":"100ms",...
etcdctl member remove $ID 3)重新部署服务后,将节点重新加入集群 由于ETCD集群证书依赖于服务器IP,为避免重新制作证书,需要保持节点IP不变。在部署好节点上服务后,先不要启动。 将节点重新加入集群 etcdctl member add $name --peer-urls=https://x.x.x.x:2380 此时查看集群状态,新加入的节点状态为unstarted ...
etcd1状态现在为unstarted c. 清空目标节点数据 目标节点从集群中删除后,成员信息会更新。新节点是作为一个全新的节点加入集群,如果data-dir有数据,etcd启动时会读取己经存在的数据,仍然用旧的memberID会造成无法加入集群,所以一定要清空新节点的data-dir。 参考文档 http://www.google.comhtt...
7、 查看集群状态,状态为unstarted 需要重新启动etcd ETCDCTL_API=3 /opt/etcd/bin/etcdctl --cacert=/opt/etcd/ssl/ca.pem --cert=/opt/etcd/ssl/server.pem --key=/opt/etcd/ssl/server-key.pem --endpoints="https://x.x.x.2:2379,https://x.x.x.3:2379,https://x.x.x.4:2379" member ...
$ etcdctl member list 22b0de6ffcd98f00[unstarted]: peerURLs=http://192.168.99.101:2380 b2b0bca2e0cfcc19: name=node3 peerURLs=http://192.168.99.102:2380 clientURLs=http://192.168.99.102:2379 isLeader=true c88e2cccbb287a01: name=node1 peerURLs=http://192.168.99.100:2380 clientURLs=http...
$ etcdctl member listError: client: etcd clusterisunavailableormisconfigured;error#0: dial tcp127.0.0.1:4001: getsockopt: connection refused ;error#1: dial tcp127.0.0.1:2379: getsockopt: connection refusederror#0: dial tcp127.0.0.1:4001: getsockopt: connection refusederror#1: dial tcp127.0.0.1:2379...
unstarted, , http://172.18.101.41:2380, , false 916281517eb238d9, started, etcd2, http://...
# etcdctl member list d4f257d2b5f99b64[unstarted]:peerURLs=http://10.1.2.174:2380 c. 清空目标节点etcd3的data-dir 节点删除后,集群中的成员信息会更新,新节点是作为一个全新的节点加入集群,如果data-dir有数据,etcd启动时会读取己经存在的数据,仍然用老的memberID会造成无法加入集群,所以一定要清空新节点...
1.2 移除unstarted节点 Ihave no name!@apisix-etcd-0:/opt/bitnami/etcd$ etcdctl member remove e5c61a98fd676893Membere5c61a98fd676893 removed from cluster b9ae902a9398fd61 2. 修改集群的 2.1 查看现在statefulset.apps/apisix-etcd的 ETCD_INITIAL_CLUSTER_STATE:的变量值,如果是new,就将它修改为existin...
$ etcdctl member list 22b0de6ffcd98f00[unstarted]: peerURLs=http://192.168.99.101:2380 b2b0bca2e0cfcc19: name=node3 peerURLs=http://192.168.99.102:2380 clientURLs=http://192.168.99.102:2379 isLeader=truec88e2cccbb287a01: name=node1 peerURLs=http://192.168.99.100:2380 clientURLs=http:...