Sha256: 1c5ad2a7d7847fdc0fdd43e76cd8dff3b0de2a447372d5ced455df88e12e60d8
Contents?: true
Size: 1.08 KB
Versions: 12
Compression:
Stored size: 1.08 KB
Contents
#! /bin/sh #------------------------------------------------------------------- # test script for watchdog source $TESTLIBS TESTDIR=master rm -fr $TESTDIR mkdir $TESTDIR cd $TESTDIR # create master environment echo -n "creating master pgpool..." sh $PGPOOL_SETUP -m s -n 2 -p 11000|| exit 1 echo "done." cat ../master.conf >> etc/pgpool.conf ./startall wait_for_pgpool_startup cd .. # create standby environment sdir=standby rm -fr $sdir mkdir $sdir cd $sdir echo -n "creating standby pgpool..." sh $PGPOOL_SETUP -m s -n 2 -p 11100|| exit 1 echo "done." cat ../standby.conf >> etc/pgpool.conf egrep 'backend_data_directory0|backend_data_directory1|failover_command|follow_master_command' ../$TESTDIR/etc/pgpool.conf >> etc/pgpool.conf ./startall wait_for_pgpool_startup cd .. # stop master pgpool and see if standby take over $PGPOOL_INSTALL_DIR/bin/pgpool -f master/etc/pgpool.conf -m f stop sleep 1 RESULT=`grep "wd_escalation: escalated to master pgpool successfully" standby/log/pgpool.log` cd master ./shutdownall cd ../standby ./shutdownall if [ -z "$RESULT" ]; then exit 1 fi exit 0
Version data entries
12 entries across 12 versions & 1 rubygems