78ef0f6ada
The service now supports the `streaming` state. Since we dont check for lag or timeline in this service, a healthy node is : * leader : in a running state * standby_leader : running (pre Patroni 3.0.4), streaming otherwise * standby & sync_standby : running (pre Patroni 3.0.4), streaming otherwise Updated the tests for this service.
34 lines
714 B
JSON
34 lines
714 B
JSON
{
|
|
"members": [
|
|
{
|
|
"name": "srv1",
|
|
"role": "standby_leader",
|
|
"state": "in archive recovery",
|
|
"api_url": "https://10.20.199.3:8008/patroni",
|
|
"host": "10.20.199.3",
|
|
"port": 5432,
|
|
"timeline": 51
|
|
},
|
|
{
|
|
"name": "srv2",
|
|
"role": "replica",
|
|
"state": "in archive recovery",
|
|
"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": "streaming",
|
|
"api_url": "https://10.20.199.5:8008/patroni",
|
|
"host": "10.20.199.5",
|
|
"port": 5432,
|
|
"timeline": 51,
|
|
"lag": 0
|
|
}
|
|
]
|
|
}
|