Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g0vlK-0001Dk-Bb for pgsql-general@arkaria.postgresql.org; Fri, 14 Sep 2018 21:36:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g0vlI-0007BT-4a for pgsql-general@arkaria.postgresql.org; Fri, 14 Sep 2018 21:36:24 +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.89) (envelope-from ) id 1g0vlD-0006jh-I7 for pgsql-general@lists.postgresql.org; Fri, 14 Sep 2018 21:36:19 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g0vlA-0005Lh-LG for pgsql-general@lists.postgresql.org; Fri, 14 Sep 2018 21:36:17 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 30AD7371; Fri, 14 Sep 2018 17:36:15 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Fri, 14 Sep 2018 17:36:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=EPwBpZldOBO7/MFm8hEELUnJFW0iu 40HEJ2JPJgXXYQ=; b=yNQnWBe6NWK2fQamr7Nqoh5nJCI3tLc2dMIBQSrBkOV+z tl5IpGCMWCOOSYPbYcSwkGXyzUcNdrjMpOPu7gZftrT0k7DT/TIFrVxv47NKOecw 1bRtFjVK4szVG/Ps1HCLOOTKMe71GR17IX5Yr3kGkKUj4KpVVoWAsbb5zf918oCn NnSsqWkAQtaJrpbqMhy3sgSJeAz5/+7lwzzEMOtjx1kkkC+nPuqvmCzgilda0L3b +ogOD7C3WRAqZl7TYvFLojerR2X2vGQHXZcsH2cWa3p5gotkBngi48yAljCNoM5S qMtZiNFQ50trVkMKMnV9EbFT3W5+sYZgNKiV+p56w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=EPwBpZ ldOBO7/MFm8hEELUnJFW0iu40HEJ2JPJgXXYQ=; b=h49kYHyW7oYNbnGraskVZf u67GOc5x6LfJ/m6hC3oAnDRp6QQlO/ORXTfdiWAPpY17Fq9jjVD7GNbT9ph0yWu9 NFuLHLvzhD5T9zdMo4vfVfWaQmuIBZXuXmv7XzVLPiNtElPWTNF0P4Z/5NeBSt+m ULkY2kl80itZ+F8kL4ixWZ28i6paKWXi1p6zKjwapwIktHkfYWluP1D5U2p4V4WX cqFZGcTb8eTvmyA7qdF8jHLC75fiyUCiH3qJQCFgrQldvoI8qIA+dNXepPySNHZV VyK7ISmGTt47K9IiQGd2HdD0583jT5uXugaUTP7sh2KjO6iLgbzB2+pFpbPzLuoQ == X-ME-Proxy: X-ME-Sender: Received: from [192.168.1.3] (unknown [71.212.134.3]) by mail.messagingengine.com (Postfix) with ESMTPA id CFA8F102D2; Fri, 14 Sep 2018 17:36:13 -0400 (EDT) Subject: Re: Slow shutdowns sometimes on RDS Postgres To: Jeremy Schneider , pgsql-general@lists.postgresql.org Cc: Christophe Pettus , Chris Williams References: <2029f1ad-23e5-5e81-4409-a76386f71382@commandprompt.com> <4c65f988-a5ee-53f1-2d58-476a5c244cd2@amazon.com> From: Adrian Klaver Message-ID: <048ef951-a02a-9c7c-9483-61979e42f21f@aklaver.com> Date: Fri, 14 Sep 2018 14:36:13 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <4c65f988-a5ee-53f1-2d58-476a5c244cd2@amazon.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 9/14/18 12:11 PM, Jeremy Schneider wrote: > On 9/14/18 10:04, Christophe Pettus wrote: > Thanks Christophe - even if it's not what Chris is running into, this is > is another good call-out. > > It's important to distinguish here between the RDS parts and the > community PostgreSQL parts.  I think for this thread it's just worth > pointing out that RDS automation/tooling will report the database in a > "modifying" state until it completes its management operations, however > the actual database unavailability is much shorter.  RDS carefully > engineers their processes to minimize the actual database unavailability > itself. > > Chris has run into a problem where the PostgreSQL processes did not shut > down, evidenced by the error messages he mentioned, and as a result his > database was actually unavailable to applications for an extended > period.  This is uncommon and concerning. > > This isn't the right forum for discussing the RDS bits; lets take that > to the AWS forums.  It's not synchronous, but the time to complete > should absolutely be predictable within reasonable bounds depending on > the operation type. I don't know how anyone could use the platform > otherwise!  If anyone is unable to establish bounded expectations for > some automated operation, I'd strongly encourage starting a thread on > the AWS forums or opening a support ticket. Not sure I follow. RDS using Postgres is a set, so I am not sure you can unbundle then when tracking down a bug. > > > On 9/14/18 09:27, Adrian Klaver wrote: >> The thing is I do not remember any posts to this list mentioning the >> same problem on a platform outside RDS. A quick search seems to >> confirm that. > I've met folks from other large fleet operators at PG conferences. There > are all kinds of stories we don't find on the lists yet.  :) Hopefully > we're all getting better about closing the loop and sharing stuff back - > that's part of the value large fleet operators can and should bring to > the community. Hopefully sooner rather then later. > -Jeremy > -- Adrian Klaver adrian.klaver@aklaver.com