46db3e2d15
Before this patch we checked the expected standby leader state was `running` for all versions of Patroni. With this patch, for: * Patroni < 3.0.4, standby leaders are in `running` state. * Patroni >= 3.0.4, standby leaders can be in `streaming` or `in archive recovey` state. We will raise a warning for the latter. The tests where modified to account for this. Co-authored-by: Denis Laxalde <denis@laxalde.org>
34 lines
694 B
JSON
34 lines
694 B
JSON
{
|
|
"members": [
|
|
{
|
|
"name": "srv1",
|
|
"role": "standby_leader",
|
|
"state": "streaming",
|
|
"api_url": "https://10.20.199.3:8008/patroni",
|
|
"host": "10.20.199.3",
|
|
"port": 5432,
|
|
"timeline": 51
|
|
},
|
|
{
|
|
"name": "srv2",
|
|
"role": "replica",
|
|
"state": "streaming",
|
|
"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
|
|
}
|
|
]
|
|
}
|