8d6b8502b6
For patroni >= version 3.0.4: * the role is `replica` or `sync_standby` * the state is `streaming` or `in archive recovery` * the timeline is the same as the leader * the lag is lower or equal to `max_lag` For prio versions of patroni: * the role is `replica` or `sync_standby` * the state is `running` * the timeline is the same as the leader * the lag is lower or equal to `max_lag` Additionnally, we now display the timeline in the perfstats. We also try to display the perf stats of unhealthy replica as much as possible. Update tests for cluster_has_replica: * Fix the tests to make them work with the new algotithm * Add a specific test for tl divergences
36 lines
698 B
JSON
36 lines
698 B
JSON
{
|
|
"members": [
|
|
{
|
|
"name": "srv1",
|
|
"role": "replica",
|
|
"state": "running",
|
|
"api_url": "https://10.20.199.3:8008/patroni",
|
|
"host": "10.20.199.3",
|
|
"port": 5432,
|
|
"timeline": 51,
|
|
"lag": 0
|
|
},
|
|
{
|
|
"name": "srv2",
|
|
"role": "replica",
|
|
"state": "running",
|
|
"api_url": "https://10.20.199.4:8008/patroni",
|
|
"host": "10.20.199.4",
|
|
"port": 5432,
|
|
"timeline": 51,
|
|
"lag": 0
|
|
},
|
|
{
|
|
"name": "srv3",
|
|
"role": "replica",
|
|
"state": "running",
|
|
"api_url": "https://10.20.199.5:8008/patroni",
|
|
"host": "10.20.199.5",
|
|
"port": 5432,
|
|
"timeline": 51,
|
|
"lag": 0
|
|
|
|
}
|
|
]
|
|
}
|