Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1syusU-00331k-1q for pgsql-hackers@arkaria.postgresql.org; Thu, 10 Oct 2024 15:14:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1syusT-0029DM-6B for pgsql-hackers@arkaria.postgresql.org; Thu, 10 Oct 2024 15:14:57 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1syusS-0029Az-SN for pgsql-hackers@lists.postgresql.org; Thu, 10 Oct 2024 15:14:57 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1syusQ-000De8-K5 for pgsql-hackers@lists.postgresql.org; Thu, 10 Oct 2024 15:14:55 +0000 Received: from [192.168.11.5] (p3828032-ipxg13401funabasi.chiba.ocn.ne.jp [118.1.241.32]) by oss.nttdata.com (Postfix) with ESMTPSA id 5B82A6059D; Fri, 11 Oct 2024 00:14:51 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at oss.nttdata.com Message-ID: <2bf011b9-4694-429d-bef4-cb18159a6cd6@oss.nttdata.com> Date: Fri, 11 Oct 2024 00:14:50 +0900 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: May be BUG. Periodic burst growth of the checkpoint_req counter on replica. Content-Language: en-US To: "Anton A. Melnikov" , Alexander Korotkov Cc: Magnus Hagander , "Anton A. Melnikov" , Andres Freund , Kyotaro Horiguchi , pgsql-hackers@lists.postgresql.org References: <99b2ccd1-a77a-962a-0837-191cdf56c2b9@inbox.ru> <3ed0590b-8132-482e-a9e6-bd694e4a48d7@postgrespro.ru> <9ea77f40-818d-4841-9dee-158ac8f6e690@oss.nttdata.com> <77032579-4dc3-4552-9a09-30aaa114c144@postgrespro.ru> <206e58c1-d8f6-4ac3-8f40-7e4c17459473@oss.nttdata.com> <82f03b0b-00c6-42b4-95c7-f2eca7fed1ea@oss.nttdata.com> <4640258e-d959-4cf0-903c-cd02389c3e05@oss.nttdata.com> <8e5f353f-8b31-4a8e-9cfa-c037f22b4aee@postgrespro.ru> <2adc5283-ae2c-424a-babf-0247eeebf5a3@oss.nttdata.com> From: Fujii Masao In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024/10/08 23:16, Anton A. Melnikov wrote: > > On 08.10.2024 15:42, Fujii Masao wrote: >> On 2024/09/30 12:26, Fujii Masao wrote: >>>>> In 0002.patch, I also modified the description of num_requested from >>>>> "Number of backend requested checkpoints" to remove "backend," as it can >>>>> be confusing since num_requested includes requests from sources other than >>>>> the backend. Thought? >>>> >>>> Agreed. E.g. from xlog. Then maybe changed it also in the function >>>> descriptions in the pg_proc.dat? For pg_stat_get_checkpointer_num_requested() >>>> and pg_stat_get_checkpointer_restartpoints_requested(). >>> >>> Yes, good catch! >> >> Patch attached. > > Looked at the patch. Just in case, checked that neither > “backend completed” nor “backend requested” were found anywhere else. > All is ok for me. Thanks for the review! Pushed. Regards, -- Fujii Masao Advanced Computing Technology Center Research and Development Headquarters NTT DATA CORPORATION