From 208c7abaab61e7bc1ce0aa5d70472e9a5aa7663a Mon Sep 17 00:00:00 2001 From: jamessewell Date: Thu, 27 Apr 2017 22:30:54 +1000 Subject: [PATCH] Update the startup script timeouts (#399) * Update the startup script shutdown / startup timeout to allow the current sync node time to release the role in synchronous_mode. Without this change Patroni will be killed while waiting, and will leave PostgreSQL up rather than stopping it. * Updates to support strict sync mode. If synchronous_mode_strict==true then 'patroni_dummy_host' will be written as synchronous_standby_names when that last replication host dies. * Oops, mixed two pull requests - backing out one --- extras/startup-scripts/patroni.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extras/startup-scripts/patroni.service b/extras/startup-scripts/patroni.service index 820e64c8..829fb64b 100644 --- a/extras/startup-scripts/patroni.service +++ b/extras/startup-scripts/patroni.service @@ -21,7 +21,7 @@ ExecStart=/bin/patroni /etc/patroni.yml KillMode=process # Give a reasonable amount of time for the server to start up/shut down -TimeoutSec=10 +TimeoutSec=30 # Do not restart the service if it crashes, we want to manually inspect database on failure Restart=no