有没有一种简单的方法可以确定谁是 etcd 集群中的当前领导者(除了通过日志搜索)?
问问题
66 次
1 回答
1
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": ""
}
于 2015-04-16T13:17:37.310 回答