View Issue Details

IDProjectCategoryView StatusLast Update
0000752Pgpool-IINew featurepublic2022-06-28 10:53
Reportergarg1982@gmail.com Assigned Topengbo  
PriorityhighSeveritymajorReproducibilityalways
Status closedResolutionopen 
OSRedHatOS Version7.5 
Product Version4.2.3 
Summary0000752: Connection to database goes to hand due to auto failover
DescriptionHi,

Just to mentioned that

I observed that whenever connection between pgpool and database is break due to some network transient failure, new connections going to halt through pgpool until search_primary_node_timeout reached. It seems this auto failover is newly introduced from version 4.1 onward. Earlier it immediately downgrade the node status to standby from primary. No wait there. is this my understanding correct

And I also preformed one testing, where I bring down the primary database subsequently pgpool detect it and went into failover mode but before it reach to search_primary_node_timeout, I started the database but still it is not reorganized that the database service up and after reaching above timeout, it degrade its status from primary to standby.

As per my understanding it is a problem because during failover time it isn't checking that master is healthy.

Please help to understand

is it normal behavior?
how we can disable auto failover or increase the time to initiate failover to cover the the transient failure? because we are using pgpool only for connection pooling.
How we can re-attach the node primary if its status changed to standby from primary without restarting the pgpool ? is any auto way or other way ?
 
Thanks & Regards
Gaurav Garg
TagsNo tags attached.

Activities

pengbo

2022-04-26 15:09

developer   ~0004027

> I observed that whenever connection between pgpool and database is break due to some network transient failure,
> new connections going to halt through pgpool until search_primary_node_timeout reached. It seems this auto failover is newly introduced from version 4.1 onward.
> Earlier it immediately downgrade the node status to standby from primary. No wait there. is this my understanding correct

We have enhanced failover in the latest version. Could you try the latest version of 4.2.x?

> And I also preformed one testing, where I bring down the primary database subsequently
> pgpool detect it and went into failover mode but before it reach to search_primary_node_timeout,
> I started the database but still it is not reorganized that the database service up and after reaching above timeout, it degrade its status from primary to standby.

The primary couldn't automatically failback.
If pgpool detects the failure of primary, it will promote any standby to primary immediately.

administrator

2022-06-02 13:50

administrator   ~0004050

Have you resolved this issue?
May I close this issue?

pengbo

2022-06-28 10:53

developer   ~0004065

No response over two weeks.
Close issue.

Issue History

Date Modified Username Field Change
2022-04-07 21:56 garg1982@gmail.com New Issue
2022-04-26 15:09 pengbo Note Added: 0004027
2022-04-26 15:09 pengbo Assigned To => pengbo
2022-04-26 15:09 pengbo Status new => feedback
2022-06-02 13:50 administrator Note Added: 0004050
2022-06-28 10:53 pengbo Note Added: 0004065
2022-06-28 10:53 pengbo Status feedback => closed