With the poolnodes command, one of the standby nodes shows as UP, but also has high replication delay, e.g.:
/db/data directory and sub-files have the correct postgres:users ownership.
Identity Manager 3.3.7
PostgreSQL database replication de-synchronization on the affected vIDM node.
This can be resolved by manually triggering a database re-sync for the affected node using the pcp_recovery_node utility.
First, obtain the specific node ID of the delayed node using the poolnodes command, the node ID is in the first column.
Then, because the node is UP, we need to detach it from the cluster:
/usr/local/bin/pcp_detach_node -w -h localhost -U pgpool -p 9898 -n <DELAYED_NODE_ID>We can then verify that the poolnodes command is now showing the node as "down", which is expected.
Finally, from the primary node, execute the pcp_recovery_node command against the affected node:
/usr/local/bin/pcp_recovery_node -w -h localhost -U pgpool -p 9898 -n 0Confirm again with the poolnodes command that the replication delay is gone, e.g.: