Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eDzPg-0006mI-LS for pgsql-general@arkaria.postgresql.org; Sun, 12 Nov 2017 21:03:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eDzPe-0005fp-MI for pgsql-general@arkaria.postgresql.org; Sun, 12 Nov 2017 21:03:30 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eDzPd-0005en-4o for pgsql-general@postgresql.org; Sun, 12 Nov 2017 21:03:29 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eDzPZ-00026l-PO for pgsql-general@postgresql.org; Sun, 12 Nov 2017 21:03:27 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 937952092B; Sun, 12 Nov 2017 16:03:10 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Sun, 12 Nov 2017 16:03:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=PGTbWihDZt7dzw8/pQQRsEtYetBgK 5kxwh3Yw5tLLUM=; b=rpCbGgiJA/1JL3cXfjPA3tbCC9HFQqLefdl7cHm7gZO33 l2HRO7zH4BFBqya3c6Rkln6pjrFLM5tQntDPX/4LvXGAQNEzLQl5S7cm1uVDLis0 mRvLJ/74ewO0IPZV5HOo1n+nPWb1SCwBLood1UVQuLyyxaJ8EeKMM6yNah7fpbZ/ fvepmTXcPK37+v+OavtRZ8vvFls7i5/JQJFJ1QJtZXPfeFKiRywFl0M4L+XfXtHu Dbm2xDDNkLTyC+uXeuYnbB6Eq42GfuiZyqVyEUV4VWGw7DFwTlmLTo5altz6tqtO CB+/B5B39qYVwiibb8HJJTdhI7d/2cxCgGI0hySZQ== X-ME-Sender: Received: from intern.anarazel.de (unknown [136.24.76.189]) by mail.messagingengine.com (Postfix) with ESMTPA id 208387F8DB; Sun, 12 Nov 2017 16:03:10 -0500 (EST) Date: Sun, 12 Nov 2017 13:03:09 -0800 From: Andres Freund To: Tom Lane Cc: Christoph Berg , "Peter J. Holzer" , pgsql-general@postgresql.org, Adam Brusselback Subject: Re: Postgres 10.1 fails to start: server did not start in time Message-ID: <20171112210309.spjszhibtdpginuc@alap3.anarazel.de> References: <8027.1510347112@sss.pgh.pa.us> <20171111132354.esi73rlpq3goyrqh@msg.df7cb.de> <20171111205316.u56lkmkakdmcx6zm@msg.df7cb.de> <20171112122658.md7u7ahq5raqezft@msg.df7cb.de> <20171112173559.m6chmbyf4vz6fu3c@hjp.at> <20171112185233.tzynljip2k3ygcxn@msg.df7cb.de> <20802.1510513605@sss.pgh.pa.us> <20171112191844.4rry32vdtxzi6crj@msg.df7cb.de> <21519.1510514802@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <21519.1510514802@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org On 2017-11-12 14:26:42 -0500, Tom Lane wrote: > Christoph Berg writes: > > The default systemd timeout seems to be 90s. I have already changed > > the systemd timeout to infinity (start) and 1h (stop), so only the > > default pg_ctl timeout remains (60s), which I'd rather not override > > unilaterally. > > > That said, isn't 60s way too small for shutting down larger clusters? > > And likewise for starting? > > Well, that's tied into the fact that pg_ctl doesn't disturb the server's > state if it gives up waiting. If it did, we would certainly use a larger > timeout or none at all. Hm. So partially that's also related to the fact that we didn't have a good way to know whether the server reacted to the shutdown request or not. With the infrastructure from commit f13ea95f9e473a43ee4e1baeb94daaf83535d37c Author: Tom Lane Date: 2017-06-28 17:31:24 -0400 Change pg_ctl to detect server-ready by watching status in postmaster.pid. we could really do better than just wonder whether our signal to shutdown was received or not. There probably should be a quite short timeout for the server to change status, and then a much longer one for that shutdown to finish. > I don't feel a big need to change that default, > but if you have a surrounding script that is going to take adverse action > after a timeout then you need to use a larger value ... Didn't we have to fiddle with this a bunch in the regression tests, to get things to work properly on slow animals? If we had to do that, other people had to do so as well. Not the friendliest experience... Greetings, Andres Freund -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general