Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cluster_node_count's management of replication states #66

Merged
merged 2 commits into from
Jan 9, 2024

Conversation

blogh
Copy link
Collaborator

@blogh blogh commented Dec 19, 2023

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.

@blogh blogh requested a review from dlax December 19, 2023 16:53
check_patroni/cluster.py Outdated Show resolved Hide resolved
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.
Since replication states are also over-ridden for standby_leaders since
the commit fixing cluster_node_count, the tests had to be adapted.
@blogh blogh merged commit 364a385 into dalibo:master Jan 9, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants