Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jTKFg-00026M-19 for pgsql-admin@arkaria.postgresql.org; Tue, 28 Apr 2020 07:01:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jTKFd-0002Fn-Su for pgsql-admin@arkaria.postgresql.org; Tue, 28 Apr 2020 07:01:53 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jTKFd-0002Fg-JR for pgsql-admin@lists.postgresql.org; Tue, 28 Apr 2020 07:01:53 +0000 Received: from impout006aa.msg.chrl.nc.charter.net ([47.43.20.30] helo=impout006.msg.chrl.nc.charter.net) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jTKFa-00061u-Ot for pgsql-admin@lists.postgresql.org; Tue, 28 Apr 2020 07:01:53 +0000 Received: from cerberus.crazybean.net ([24.151.69.73]) by cmsmtp with ESMTP id TKFYjvIhH6k6FTKFYjuWRc; Tue, 28 Apr 2020 07:01:49 +0000 Authentication-Results: crazybean.net; none X-Authority-Analysis: v=2.3 cv=G8io7Os5 c=1 sm=1 tr=0 a=YXTuGtgWN9YX+aIhe8tYuA==:117 a=YXTuGtgWN9YX+aIhe8tYuA==:17 a=xqWC_Br6kY4A:10 a=cl8xLZFz6L8A:10 a=ZlyK2CvnAAAA:8 a=kMJNwdVBi9L5zx1mOsUA:9 a=CjuIK1q_8ugA:10 a=Ki1gGhNGtxLEHVx5:21 a=_W_S_7VecoQA:10 a=65LznRTJNR0fhtMdHxbG:22 Received: from [IPv6:2001:470:e117:4:60b1:c785:603b:e373] ( [2001:470:e117:4:60b1:c785:603b:e373]) by cerberus.crazybean.net (OpenSMTPD) with ESMTPSA id 5f9ed339 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Tue, 28 Apr 2020 03:01:48 -0400 (EDT) From: Rui DeSousa Message-Id: <24FB3FC5-6F7E-4857-8555-C5F96E2F0105@crazybean.net> Content-Type: multipart/alternative; boundary="Apple-Mail=_769AA6A2-0C61-4B02-ABA7-03B1E4C8A635" Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: PostgreSQL DB checkpoint error! Date: Tue, 28 Apr 2020 03:01:47 -0400 In-Reply-To: Cc: "pgsql-admin@postgresql.org" , "pgsql-admin@lists.postgresql.org" To: Ashok kumar Mani References: <913378B8-0A7F-44A6-BF34-32BF58FC0876@crazybean.net> X-Mailer: Apple Mail (2.3608.80.23.2.2) X-CMAE-Envelope: MS4wfAiSpp/UsI2SkknjHTeeUSfPrH/0lFkQUBxLDBS9ANt393W5JIpVFhyLC5zHg4QE7QKtLkhDgU7m0yjFl96VH8DURgiBN4ugrnURxgleHbnIXTgLXFe/ FWXxHYgyW4XXHOFO56mBruahc82LujyBD0i1VU3rB3nxrLAYE7TMMctT8WeyyQsuY+YyJJQh16QxB4Ncg5hdELLZG2jRphuaeD1Av5y+UEOrECNwam86ETaG dKQCytTeaVEHqj6i5fq5CWEAC1Z2yjxeNH2oChHe4qw= List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail=_769AA6A2-0C61-4B02-ABA7-03B1E4C8A635 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Apr 28, 2020, at 2:49 AM, Ashok kumar Mani = wrote: =20 > =20 > Do I need to restart the postgresql service for log_checkpoints to = make it active . I would like to enable this parameter temporarily and = check it? > =20 Nope, just get it in postgresql.conf and reload it. i.e. pg_ctl reload=20= >=20 > postgres=3D# show max_wal_size; > max_wal_size > -------------- > 2GB > (1 row) With the deletes, vacuum full, and reindex it is generating WALs at a = rapid rate thus trigging another checkpoint given the 2GB size. The = vacuum full and reindex are most likely causing Zabbix to be blocked. =20= I would rethink the vacuum full and reindex; before changing = max_wal_size.=20 --Apple-Mail=_769AA6A2-0C61-4B02-ABA7-03B1E4C8A635 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii

On Apr 28, 2020, at 2:49 AM, Ashok kumar Mani <amani@accelaero.com>= wrote:  
 
Do I need to restart the postgresql service for = log_checkpoints to make it active . I would like to enable this = parameter temporarily and check it?
 

Nope, just get it in postgresql.conf and reload it. = i.e.   pg_ctl reload 


postgres=3D# show = max_wal_size;
max_wal_size
--------------
2GB
(1 = row)

With the deletes, vacuum full, and reindex it is = generating WALs at a rapid rate thus trigging another checkpoint given = the 2GB size.  The vacuum full and reindex are most likely causing = Zabbix to be blocked.  

I would = rethink the vacuum full and reindex; before changing = max_wal_size. 




= --Apple-Mail=_769AA6A2-0C61-4B02-ABA7-03B1E4C8A635--