pgpool / pgpool2

This is the official mirror of git://git.postgresql.org/git/pgpool2.git. Note that this is just a *mirror* - we don't work with pull requests on github. Please subscribe to pgpool-hackers mailing list from our website and submit your patch to this mailing list.
https://www.pgpool.net
Other
326 stars 88 forks source link

What is the execution order of ‘follow_master_command' and 'failover_command'? #2

Closed hyz0906 closed 8 years ago

hyz0906 commented 8 years ago

I set the ‘follow_master_command' and 'failover_command' in my 'pgpool.conf'. In the failover_command, it touches a trigger file on the standby node to promote the node. And in the follow_master_command, I recover the slave from the new master by call the pcp_recovery_node command. But I found that when the recovery command is triggered,it reports: ERROR: failed to process PCP request at the moment DETAIL: failover is in progress FATAL: authentication failed for new PCP connection DETAIL: connection not authorized Pgpool version:3.4.4 or 3.5.0