I'm working on postgres replication and pgpool2, it works ok.
Suppose that, I have one master and two slave servers, when master(1) down, pgpool will promote one of two slave servers to master(2).
So, my issue is the time when I stop master(1) server, data still come to master(2) database, and I updated some fields in master(2) db, when I start again with master(1) database, will have two case occur:
The master(2) server will be still kept and sync the data to master(1) database, this situation will lead to all of DDL I updated will be lost.
The master(2) server will be down to slave and will be sync data(by use rsync) from master(1) database, this situation will be lead to all data from user in the time will be lost.
So, have any recommendation or the way to solve it?
Thank you.