Yicheng Qin f1aaa7a9e3 etcdctl: refactor the way to check cluster health
This method uses raft status exposed at /debug/varz to determine the
health of the cluster. It uses whether commit index increases to
determine the cluster health, and uses whether match index increases to
determine the member health.

This could fix the bug #2711 that fails to detect follower is unhealthy
because it doesn't rely on whether message in long-polling connection is sent.

This health check is stricter than the old one, and reflects the
situation that whether followers are healthy in the view of the leader. One
example is that if the follower is receiving the snapshot, it will turns
out to be unhealthy because it doesn't move forward.

`etcdctl cluster-health` will reflect the healthy view in the raft level,
while connectivity checks reflects the healthy view in transport level.
2015-07-29 17:06:55 -07:00
..
2015-06-15 18:18:50 -04:00
2015-06-15 11:12:28 -07:00
2015-06-02 19:01:41 -07:00
2015-07-21 12:53:20 -07:00
2015-07-21 12:53:19 -07:00
2015-07-21 12:53:19 -07:00
2015-07-21 12:53:19 -07:00
2015-07-21 12:53:19 -07:00
2015-06-15 18:18:50 -04:00
2015-07-21 12:53:19 -07:00
2015-06-15 18:18:50 -04:00