Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aTajA-0006GO-DH for pgsql-admin@arkaria.postgresql.org; Wed, 10 Feb 2016 19:47:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aTaj9-00086p-QV for pgsql-admin@arkaria.postgresql.org; Wed, 10 Feb 2016 19:47:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aTaj8-00086I-UO for pgsql-admin@postgresql.org; Wed, 10 Feb 2016 19:47:03 +0000 Received: from resqmta-ch2-09v.sys.comcast.net ([2001:558:fe21:29:69:252:207:41]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aTaiz-00019C-UX for pgsql-admin@postgresql.org; Wed, 10 Feb 2016 19:47:02 +0000 Received: from resomta-ch2-01v.sys.comcast.net ([69.252.207.97]) by resqmta-ch2-09v.sys.comcast.net with comcast id GjmX1s00426dK1R01jmmBa; Wed, 10 Feb 2016 19:46:46 +0000 Received: from jerry.enova.com ([12.30.159.20]) by resomta-ch2-01v.sys.comcast.net with comcast id Gjmb1s00K0ShjPw01jmd1P; Wed, 10 Feb 2016 19:46:44 +0000 Received: by jerry.enova.com (Postfix, from userid 1001) id 89A1A7401EE; Wed, 10 Feb 2016 13:46:35 -0600 (CST) From: Jerry Sievers To: Kiriakos Georgiou Cc: pgsql-admin@postgresql.org Subject: Re: is it cool to restart servers as preventive maintenance? References: Date: Wed, 10 Feb 2016 13:46:35 -0600 In-Reply-To: (Kiriakos Georgiou's message of "Wed, 10 Feb 2016 14:10:19 -0500") Message-ID: <868u2sxs9w.fsf@jerry.enova.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1455133606; bh=tjstzwU2yelvomBlr5HOk2PdMngnVqhgBKB4nDgu164=; h=Received:Received:Received:From:To:Subject:Date:Message-ID: MIME-Version:Content-Type; b=AEo5HfV7H82jxDY8y6kSUi72X2JxZVJExUFdbsTRTH0hLNt8r7NE9bzorBBiQiq4c GdJ6oQh2edIvUwXwHLkIpmi+6YfKMLkb93cv4iwUYaRJFWSC6ft8R4BGkz8mgYTwZJ COwhSMf7eU/jArmq+1Jr7gcxo+7ku38+r7OQnMQ29fSlO7/EkDzKQimPBqiNuZ5hB7 D5jAlARQ2+mmEYbf+aB8SDfTMIvdc4I4MAWHJN7W82yT8s/uPO0DYI08GTMUzkd2wV 3tyCPdv3n90N22SmOcaWAv5ciQdxMi5pEgp5h5zIAB2cWBHEE3a/9HE1bAFsRzBez5 JjIsboLPeYD2g== X-Pg-Spam-Score: -1.7 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Kiriakos Georgiou writes: > Hello, > > Is it accepted practice to restart a production database on a regular basis (e.g.: once a month) ? > > In the last 12 months I have noticed 3-4 instances of database > flakiness that is cured by restarting. I’ve been using > PostgreSQL since 2007 and I haven’t seen such issues > requiring a reboot, but on my current project we do some rather heavy > duty PostGIS analysis that apparently stresses the system enough to > occasionally cause this (that’s my theory anyway.) > I’m beginning to seriously consider restarting servers on a > monthly basis. I once took a new DBA position and found them doing a weekly full restart and clustering several large table. This went on for a short while until I brought to their attention that the only problem was long-open transactions :-) We put in a fix for that problem... Thus rather than taking production down every Friday night, we went out partying instead. Unsophisticated/brute force approach and nobody wins. YMMV > regards, > Kiriakos Georgiou -- Jerry Sievers Postgres DBA/Development Consulting e: postgres.consulting@comcast.net p: 312.241.7800 -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin