hapostgres / hapostgres/pg_auto_failover

How can I configure the maximum number of WAL segments a standby can lag behind the primary in pg_auto_failover?

Open
#1,027 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
1.4k
Forks
142
Avg merge
5h 8m
Merged PRs (30d)
1

Description

### Summary

I'm using `pg_auto_failover` for automatic failover and I'm trying to understand how to configure the maximum number of WAL segments a standby can lag behind the primary.

### Details

In the documentation, it's mentioned that failover might lead to some data loss, but failover is not initiated if the secondary is more than 10 WAL segments (by default) behind on the primary. I would like to know how I can configure this value.
I couldn't find any such configuration option in the documentation or in the `pg_autoctl` command.

Thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.