Files
patroni/tests
ksarabu1andGitHub e3335bea1a Master stop timeout (#1445)
## Feature: Postgres stop timeout

Switchover/Failover operation hangs on signal_stop (or checkpoint) call when postmaster doesn't respond or  hangs for some reason(Issue described in [1371](https://github.com/zalando/patroni/issues/1371)). This is leading to service loss for an extended period of time until the hung postmaster starts responding or it is killed by some other actor.

### master_stop_timeout

The number of seconds Patroni is allowed to wait when stopping Postgres and effective only when synchronous_mode is enabled. When set to > 0 and the synchronous_mode is enabled, Patroni sends SIGKILL to the postmaster if the stop operation is running for more than the value set by master_stop_timeout. Set the value according to your durability/availability tradeoff. If the parameter is not set or set <= 0, master_stop_timeout does not apply.
2020-04-15 12:18:49 +02:00
..
2020-04-15 12:18:49 +02:00
2019-12-04 11:28:46 +01:00
2019-08-05 15:08:04 +02:00
2020-04-09 10:34:35 +02:00
2020-04-15 12:18:49 +02:00
2020-04-09 10:34:35 +02:00
2019-12-04 11:28:46 +01:00
2020-04-09 10:34:35 +02:00
2020-04-15 12:18:49 +02:00
2020-04-15 12:18:49 +02:00
2020-04-09 10:34:35 +02:00