View Issue Details

IDProjectCategoryView StatusLast Update
0000642Pgpool-IIGeneralpublic2020-08-27 20:21
ReporterKen Assigned Topengbo  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionopen 
Product Version4.1.3 
Summary0000642: Replication slot
DescriptionHello

I notice that replication slot disappear after shutdown server. This is normal behavior? If yes that, where do i find parameter from this setting in configuration or script?
I ask because when standby server will closed and later server up that I will must make whole backup which will last long time.
TagsNo tags attached.

Activities

pengbo

2020-08-26 13:33

developer   ~0003517

Are you using the failover.sh script included in RPM packages?
In that script pgpool drops replication slot when standby goes down.

https://www.pgpool.net/docs/latest/en/html/example-cluster.html
https://git.postgresql.org/gitweb/?p=pgpool2.git;a=blob_plain;f=src/sample/scripts/failover.sh.sample;hb=refs/heads/V4_1_STABLE


==================================
## If Standby node is down, skip failover.
if [ $FAILED_NODE_ID -ne $OLD_PRIMARY_NODE_ID ]; then
    logger -i -p local1.info failover.sh: Standby node is down. Skipping failover.

    ssh -T -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null postgres@$OLD_PRIMARY_NODE_HOST -i ~/.ssh/id_rsa_pgpool "
        ${PGHOME}/bin/psql -p $OLD_PRIMARY_NODE_PORT -c \"SELECT pg_drop_replication_slot('${FAILED_NODE_HOST}')\"
    "

    if [ $? -ne 0 ]; then
        logger -i -p local1.error failover.sh: drop replication slot "${FAILED_NODE_HOST}" failed
        exit 1
    fi

    exit 0
fi
==================================

Ken

2020-08-27 16:30

reporter   ~0003524

thanks for you answer, information above explained all things. Topic is to closing.

pengbo

2020-08-27 20:21

developer   ~0003525

I am going to close this issue.

Issue History

Date Modified Username Field Change
2020-08-25 22:20 Ken New Issue
2020-08-26 13:33 pengbo Note Added: 0003517
2020-08-26 13:33 pengbo Assigned To => pengbo
2020-08-26 13:33 pengbo Status new => feedback
2020-08-27 16:30 Ken Note Added: 0003524
2020-08-27 16:30 Ken Status feedback => assigned
2020-08-27 20:21 pengbo Note Added: 0003525
2020-08-27 20:21 pengbo Status assigned => closed