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
- 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
Assessment
This issue has not been assessed yet.