I installed PgPool-II and nodes on Debian virtual machines. I followed instructions written in the user manual. I enabled streaming replication, failover and online recovery features.
Here is my network configuration :
- 192.168.1.111 PgPool-II
- 192.168.1.124 master node (id=0)
- 192.168.1.126 slave node (id=1)
PgPool-II working well, however I have an issue during online recovery with master node.
When I bring down master node the slave is well promoted (he becomes the new master) due to failover. So far, so good.
However, when and try to restore old master as slave with "pcp_recovery_node" command, this one is correctly reconfigured (due to "basebackup.sh") but it can't connect to new master because "max_wal_senders = 0" on latter.
I tried to change this value on "postgresql.conf" standby file but if I do that my standby doesn't want to start because "wal_level = minimal" and so there is inconsistency.
Versions : - PgPool-II 3.3.3 - PostgreSQL 9.1 - Debian x64 7.6
Thanks in advance for your help.