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.