Merge pull request #4 from meswapnilwagh/patch-1
[pgpool-online-recovery] / README.md
index 435fac5..b094ac4 100644 (file)
--- a/README.md
+++ b/README.md
@@ -25,7 +25,7 @@ What about the given scripts and config files ?
 
 **recovery.conf** : A config file used by postgres slave for streaming replication process.
 
-**failover.sh** : This script will be executed automatically when a pgpool's backend node (postgres node) fall down. It'll switch the standby node (slave) to master (new master).
+**failover.sh** : This script will be executed automatically when a pgpool's backend node (postgres node) fails down. It'll switch the standby node (slave) to master (new master).
 
 **online-recovery.sh** : This is the bash script which you'll execute manually in order to :
 * Reboot, sync and reattach slave node to pgpool if it fails.
@@ -88,6 +88,8 @@ To do, just follow these steps :
        health_check_period = 30
        health_check_user = 'postgres'
        health_check_password = 'postgrespass'
+       # - Special commands -
+        follow_master_command = 'echo %M > /tmp/postgres_master'
        # Failover command
        failover_command = '/path/to/failover.sh %d %H %P /tmp/trigger_file'
 
@@ -138,7 +140,7 @@ Test PCP interface (as root) :
 
 After starting pgpool, try to test this two scenarios :
 
-**1. When a slave fall down** :
+**1. When a slave fails down** :
 
 Open pgpool log file 'tail -f /var/log/pgpool2/pgpool.log'.
 
@@ -152,7 +154,7 @@ Now, start slave failback process (as root) :
 
        # ./online-recovery.sh
 
-**2. When a master fall down** :
+**2. When a master fails down** :
 
 Idem, open pgpool log file.