CoreOS集群中的计算机状态

时间:2015-04-15 13:14:55

标签: cluster-computing coreos etcd raft

有没有一种简单的方法可以找出谁是etd集群中的当前领导者(搜索日志除外)?

1 个答案:

答案 0 :(得分: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": ""
}