1、列出集群成员
etcdctl --endpoints=http://etcd-1.xx.com:2379,http://etcd-2.xx.com:2379,http://etcd-3.xx:2379 member list -w table
2、查看etcd-选举leader
etcdctl --endpoints=etcd-1.xx.com:2379 get /JASMINE/loadtest --prefix
3、获取epoch值
etcdctl --endpoints=etcd-xx.com:2379 get /JASMINE/loadtest4/epoch/etc1pbtc --prefix
4、集群状态
etcdctl --write-out=table --endpoints=http://etcd-4.xx:2379,http://etcd-5.xx:2379,http://etcd-6.xx:2379 endpoint status
5、监控检测
etcdctl --endpoints=http://etcd-4.xx:2379,http://etcd-5.xx:2379,http://etcd-6.xx:2379 endpoint health
6、epoch值修改(etcd所在服务器上执行)
etcdctl put /JASMINE/loadtest4/epoch/etc1pbtc 690 #690要更新的值
etcd常用命令实用
最新推荐文章于 2024-04-26 23:23:36 发布