Here is documentation of Patroni https://patroni.readthedocs.io/en/latest/replication_modes.html.
There are two options: maximum_lag_on_failover and synchronous_mode.
In the project, I see these two options are set (synchronous_mode: true, maximum_lag_on_failover: 1048576 ). Does it make sense?
One says you can promote secondary to primary with a lag of 1048576 bytes, and second, says you can't promote secondary to primary if you have any lag. And the second question does maximum_lag_on_failover works only on async replication, and synchronous_mode only on sync replication?