Fix doc layout and threshold doc
This commit is contained in:
parent
86f8bdb395
commit
561c3ed9da
12
README.md
12
README.md
|
@ -81,11 +81,11 @@ A match is found when : start <= VALUE <= end
|
||||||
|
|
||||||
For example, the followinf command will raise :
|
For example, the followinf command will raise :
|
||||||
|
|
||||||
* a warning if there is less than 1 nodes
|
* a warning if there is less than 1 nodes, wich can be translated to outside of range [2;+INF[
|
||||||
* a critical if there are no nodes
|
* a critical if there are no nodes, wich can be translated to outside of range [1;+INF[
|
||||||
|
|
||||||
```
|
```
|
||||||
check_patroni -e https://10.20.199.3:8008 cluster_has_replica --warning @1 --critical @0
|
check_patroni -e https://10.20.199.3:8008 cluster_has_replica --warning 2: --critical 1:
|
||||||
```
|
```
|
||||||
|
|
||||||
## cluster services
|
## cluster services
|
||||||
|
@ -136,8 +136,10 @@ Usage: check_patroni cluster_has_replica [OPTIONS]
|
||||||
|
|
||||||
Check if the cluster has healthy replicates.
|
Check if the cluster has healthy replicates.
|
||||||
|
|
||||||
A healthy replicate : * is in running state * has a replica role * has a lag
|
A healthy replicate :
|
||||||
lower or equal to max_lag
|
* is in running state
|
||||||
|
* has a replica role
|
||||||
|
* has a lag lower or equal to max_lag
|
||||||
|
|
||||||
Check:
|
Check:
|
||||||
* `OK`: if the healthy_replica count and their lag are compatible with the replica count threshold.
|
* `OK`: if the healthy_replica count and their lag are compatible with the replica count threshold.
|
||||||
|
|
|
@ -265,6 +265,7 @@ def cluster_has_replica(
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Check if the cluster has healthy replicates.
|
"""Check if the cluster has healthy replicates.
|
||||||
|
|
||||||
|
\b
|
||||||
A healthy replicate :
|
A healthy replicate :
|
||||||
* is in running state
|
* is in running state
|
||||||
* has a replica role
|
* has a replica role
|
||||||
|
|
|
@ -72,11 +72,11 @@ A match is found when : start <= VALUE <= end
|
||||||
|
|
||||||
For example, the followinf command will raise :
|
For example, the followinf command will raise :
|
||||||
|
|
||||||
* a warning if there is less than 1 nodes
|
* a warning if there is less than 1 nodes, wich can be translated to outside of range [2;+INF[
|
||||||
* a critical if there are no nodes
|
* a critical if there are no nodes, wich can be translated to outside of range [1;+INF[
|
||||||
|
|
||||||
```
|
```
|
||||||
check_patroni -e https://10.20.199.3:8008 cluster_has_replica --warning @1 --critical @0
|
check_patroni -e https://10.20.199.3:8008 cluster_has_replica --warning 2: --critical 1:
|
||||||
```
|
```
|
||||||
_EOF_
|
_EOF_
|
||||||
readme
|
readme
|
||||||
|
|
Loading…
Reference in a new issue