Open lukaszdobrzynski opened 3 months ago
@lukaszdobrzynski Pgpool will execute follow_primary_command on all nodes except the new primary.
Did you see the following log in pgpool log?
=== Starting follow primary command for node X ===
LOG: execute command: /path/to/follow_primary.sh ...
According to the docs
follow_primary_command
specifies a user command to run after failover on the primary node failover. Typicallyfollow_primary_command
is used to recover the standby from the new primary.While
failover_command
works perfectly well and runs a script to promote the standby node to a new primary, thefollow_primary_command
is not triggered after the successful promotion, which is something I'd expect to happen next.The
pgpool.conf
setup contains the following entries:The
pgpool-failover.sh
script does the following:The
pgpool-follow-primary.sh
is expected to create a log entry for testing purposes, yet no entry is created in the system, so I assume the command is not invoked by the pgpool:Is there anything I might be missing here or do not understand about
follow_primary_command
option?