Search Postgresql Archives

Postgres 9.6 active-passive HA cluster

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi guys,

 

We are in process of testing a Postgres 9.6 active-passive HA cluster using

streaming replication on Rhel 7.6.

We have setup Postgres 9.6 primary/warm standby streaming synchorous replication.

We have set synchronous_standby_names=* and synchronous_commit=on.

 

To test we have 5 sql clients firing inserts simultaneously on the 12 tables created on a db present on the primary. each client would end up firing 2000 request.

So when i run this experiment, i kill postgres on primary say after 8000 records are inserted.

Then i start both nodes as standalone to compare the data.

 

So once in a while i observe that  there exist one record more in a few tables on the killed  primary than as compared to the records on the standby.

Our expectation is both servers should have same number of records when we set synchronous replication. Because if that does not happen and now i make the failed primary the new standby then the records would not be saved as the new primary(old standby) did not have them in the first place.
How do we handle this situation?

 

Could anybody please help provide some pointers?

Thanks
Jairam

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux