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

Add checks to detect nodes with a lower timeline. #49

Closed
blogh opened this issue Sep 26, 2023 · 2 comments
Closed

Add checks to detect nodes with a lower timeline. #49

blogh opened this issue Sep 26, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@blogh
Copy link
Collaborator

blogh commented Sep 26, 2023

Use the cluster end point to compare le TL of différent nodes.

@blogh blogh added the enhancement New feature or request label Sep 26, 2023
@blogh
Copy link
Collaborator Author

blogh commented Sep 27, 2023

This might be useless for patroni versions > 3.0.4 (see #50)

@blogh
Copy link
Collaborator Author

blogh commented Dec 11, 2023

In cluster_has_replica we now have (since #62):

A healthy replica:

  • has a replica or sync_standby role
  • has the same timeline as the leader and
    • is in running state (patroni < V3.0.4)
    • is in streaming or in archive recovery state (patroni >= V3.0.4)
  • has a lag lower or equal to max_lag

@blogh blogh closed this as completed Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant