To workaround the issue increase the auto_recovery_replication_delay_threshold setting
1. Find the typical replication delays on this setup:
cd /var/log/pgService
zgrep "SECONDARY_1_REPLICATION_DELAY" * | cut -d '=' -f2 | uniq | sort -r | head -n50
# Similarly for SECONDARY_2
zgrep "SECONDARY_2_REPLICATION_DELAY" * | cut -d '=' -f2 | uniq | sort -r | head -n50
2. Based on the highest delays reported above, configure the new threshold in /usr/local/etc/lcm-pgpool.conf for example:
auto_recovery_replication_delay_threshold=10000
3. Perform this change on all the identity manager nodes in the cluster.