-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix cluster_node_count's management of replication states
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.
- Loading branch information
Showing
7 changed files
with
184 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"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 | ||
} | ||
] | ||
} |
Oops, something went wrong.