CoreOS 集群中的机器状态
Machine state in a CoreOS cluster
有没有一种简单的方法可以找出谁是 etcd 集群中的当前领导者(除了通过日志搜索)?
curl -L http://127.0.0.1:4001/v2/stats/self
产量
{
"leaderInfo": {
"leader": "10.132.90.172",
"startTime": "2015-04-16T11:57:49.568452941Z",
"uptime": "1h18m25.433506066s"
},
"name": "10.132.90.172",
"recvAppendRequestCnt": 0,
"sendAppendRequestCnt": 0,
"startTime": "2015-04-16T11:57:49.56843843Z",
"state": ""
}
有没有一种简单的方法可以找出谁是 etcd 集群中的当前领导者(除了通过日志搜索)?
curl -L http://127.0.0.1:4001/v2/stats/self
产量
{
"leaderInfo": {
"leader": "10.132.90.172",
"startTime": "2015-04-16T11:57:49.568452941Z",
"uptime": "1h18m25.433506066s"
},
"name": "10.132.90.172",
"recvAppendRequestCnt": 0,
"sendAppendRequestCnt": 0,
"startTime": "2015-04-16T11:57:49.56843843Z",
"state": ""
}