35 ms·
> - How do I check how many seconds the replica is lagging behind master? > - How would I monitor the replica? A simple cron task that pings a health check if
by himinlomax 2y ago
> - How do I check how many seconds the replica is lagging behind master?
> - How would I monitor the replica? A simple cron task that pings a health check if everything is OK (lag is < x) would be a nice start.
No, you should use Patroni. It configures and monitors Postgres' native replication.
https://patroni.readthedocs.io/en/latest/ https://patroni.readthedocs.io/en/latest/