| From: | VASUKI M <vasukim1992002(at)gmail(dot)com> |
|---|---|
| To: | ishii(at)postgresql(dot)org, Bo Peng <pengbo(at)sraoss(dot)co(dot)jp> |
| Cc: | pgpool-hackers(at)lists(dot)postgresql(dot)org, bharatdb(at)cdac(dot)in |
| Subject: | Autofail back inconsistent |
| Date: | 2025-11-04 05:23:56 |
| Message-ID: | CACTYHzhv1K1Jpe+bT0z1Oxod3d0odYW8yLuB_9q5NFyUHY6=zA@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgpool-hackers |
Hi Pgpool-II Community,
I’ve been working with PostgreSQL for quite some time, and while managing
backend servers with Pgpool-II, I noticed that there’s no built-in data
synchronization before standby nodes are reattached.
To address this, I’ve developed a new enhancement for Pgpool-II called
*“Automatic
Resync and Reattach”*, aimed at improving high availability and reducing
manual intervention after node failures.
This feature automatically performs:
-
*pg_rewind synchronization* and *WAL replay* for failed or lagging
standby nodes
-
*Automatic reattachment* of standby nodes once they are safely resynced
This enhancement overcomes some limitations of existing features:
-
*Online Recovery* – requires manual execution of pcp_recovery_node
-
*Auto Failback* – may reattach inconsistent nodes without synchronization
With *Auto Resync & Reattach*, Pgpool-II ensures data safety and
consistency during failover recovery, providing a more robust and
self-healing HA environment.
I’ve created a dedicated GitHub repository with setup instructions,
configuration samples, and architecture diagrams here:
https://github.com/BharatDBPG/pgpool2-auto-resync
The repository includes:
-
Enhanced failover.sh and follow_primary.sh scripts (handling both
primary and standby failures)
-
A new resync.sh script integrating pg_rewind + WAL replay
-
Sample configuration files for a *1 Primary + 2 Standby* setup
I would love to receive feedback or suggestions from the community
regarding possible improvements or integration ideas.
I will be happy to share a patch if needed.
Thank you for your time and support.
Best regards,
*Vasuki MCDAC,CHENNAI*
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tatsuo Ishii | 2025-11-04 11:40:38 | Re: Autofail back inconsistent |
| Previous Message | Tatsuo Ishii | 2025-11-03 07:05:34 | Re: Proposal: recent access based routing for primary-replica setups |