dalibo/check_patroni

Add checks to detect nodes with a lower timeline.

Closed this issue · 2 comments

blogh commented

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

blogh commented

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

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