pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John R Pierce <pierce@hogranch.com>
To: gdr@gdr.name
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #14851: Systemd kills long-running recovery
Date: Fri, 13 Oct 2017 12:03:57 -0700
Message-ID: <81d229fd-02f7-13a2-47ab-3bb9435f4c7d@hogranch.com> (raw)
In-Reply-To: <20171013091028.20254.74268@wrigleys.postgresql.org>
References: <20171013091028.20254.74268@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 10/13/2017 2:10 AM, gdr@gdr.name wrote:
> Summary: I think the line "TimeoutSec=300" in the systemd unit file isn't
> necessary
>
> Problem: I'm running a Postgres replication slave  fresh after
> pg_basebackup. It has about 12 hours worth of xlogs to replay.  After 5
> minutes of "systemctl start postgresql-9.6" not returning to shell, systemd
> kills the server in the middle of recovery.
>
> This is because of TimeoutSec=300 in the systemd unit file. I don't think
> removing this statement will have any negative effects and I propose that
> it's not included in the pgdg distribution.


Maybe the unit code that detects the server is running needs some way of 
detecting its in recovery, and that the recovery is somehow progressing, 
and report that as 'running' ?


-- 
john r pierce, recycling bits in santa cruz



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (4+ messages)  latest in thread

Message-ID: <81d229fd-02f7-13a2-47ab-3bb9435f4c7d@hogranch.com>
Permalink:  ../81d229fd-02f7-13a2-47ab-3bb9435f4c7d@hogranch.com/
Also on:    postgresql.org/message-id/81d229fd-02f7-13a2-47ab-3bb9435f4c7d@hogranch.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: pierce@hogranch.com, gdr@gdr.name
  Subject: Re: BUG #14851: Systemd kills long-running recovery
  In-Reply-To: <81d229fd-02f7-13a2-47ab-3bb9435f4c7d@hogranch.com>
  References: <20171013091028.20254.74268@wrigleys.postgresql.org> <81d229fd-02f7-13a2-47ab-3bb9435f4c7d@hogranch.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox