swh:1:snp:8a1bf80ec89c62a71cdcaaf0c2f9145695a5340a
Revision 6c9e876d7a4b4d636f9c667aa116d0dbd01d841a authored by Yicheng Qin on 23 July 2015, 23:49:31 UTC, committed by Yicheng Qin on 21 August 2015, 22:22:05 UTC
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.
1 parent a845f82
Tip revision: d3abeeca4713314c64874fdecf33e2649ce9e417 authored by James Blair on 10 April 2024, 07:48:53 UTC
Merge pull request #17755 from ivanvc/rw-individual-benchmark
Merge pull request #17755 from ivanvc/rw-individual-benchmark
Tip revision: d3abeec
File | Mode | Size |
---|---|---|
Documentation | ||
Godeps | ||
client | ||
discovery | ||
error | ||
etcdctl | ||
etcdmain | ||
etcdserver | ||
hack | ||
integration | ||
logos | ||
migrate | ||
pkg | ||
proxy | ||
raft | ||
rafthttp | ||
scripts | ||
snap | ||
storage | ||
store | ||
tools | ||
version | ||
wal | ||
.dockerignore | -rw-r--r-- | 5 bytes |
.gitignore | -rw-r--r-- | 107 bytes |
.godir | -rw-r--r-- | 23 bytes |
.header | -rw-r--r-- | 589 bytes |
.travis.yml | -rw-r--r-- | 119 bytes |
CONTRIBUTING.md | -rw-r--r-- | 2.1 KB |
DCO | -rw-r--r-- | 1.4 KB |
Dockerfile | -rw-r--r-- | 47 bytes |
LICENSE | -rw-r--r-- | 11.1 KB |
MAINTAINERS | -rw-r--r-- | 157 bytes |
NOTICE | -rw-r--r-- | 126 bytes |
Procfile | -rw-r--r-- | 1.3 KB |
README.md | -rw-r--r-- | 4.4 KB |
ROADMAP.md | -rw-r--r-- | 1.2 KB |
build | -rwxr-xr-x | 567 bytes |
cover | -rwxr-xr-x | 626 bytes |
main.go | -rw-r--r-- | 1.1 KB |
test | -rwxr-xr-x | 2.2 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...