Re: Frequent failover - Mailing list pgsql-admin

From Ron
Subject Re: Frequent failover
Date
Msg-id 9cabf7bc-e98f-449c-82ce-446727ff4814@gmail.com
Whole thread Raw
In response to Re: Frequent failover  (Rajesh Kumar <rajeshkumar.dba09@gmail.com>)
Responses Re: Frequent failover
List pgsql-admin
Have you scoured the Patroni and Postgresql logs?

Have you increased the logging level?

On 11/6/23 23:44, Rajesh Kumar wrote:
Is there a way to narrow down the cause of failover? Yesterday itself failover happened 7 times.

On Mon, 6 Nov, 2023, 1:34 PM kaido vaikla, <kaido.vaikla@gmail.com> wrote:
Hi
First of all, read a logs.
$PGDATA/log
#journalctl -u patroni
I had once failover flapping, because of master heavy load, caused by apliccation change. So, find a pattern.

If physical replication, after failover you don't need run a vacuum manually if autovacuum is enabled.

br
Kaido

On Mon, 6 Nov 2023 at 04:53, Rajesh Kumar <rajeshkumar.dba09@gmail.com> wrote:
Hi,

When I issue command patronictl history, I can see frequent failover. Like atleast weekly once.

Every time this happened we have to do vacuum analyse for all dba.

So, I need assistance in how to avoid frequent failovers and what is the solution for vacuum part we r doing..

--
Born in Arizona, moved to Babylonia.

pgsql-admin by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: TRIGGER on a FOREIGN Table?
Next
From: Rajesh Kumar
Date:
Subject: Re: Frequent failover