From: | Scott Ribe <scott_ribe(at)elevated-dev(dot)com> |
---|---|
To: | Murthy Nunna <mnunna(at)fnal(dot)gov> |
Cc: | "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: Cascade Standby Configuration in 9.2.4 |
Date: | 2014-04-01 23:48:55 |
Message-ID: | 53779B8A-7926-4C62-BABE-A6811B6CBF6D@elevated-dev.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
On Apr 1, 2014, at 5:20 PM, Murthy Nunna <mnunna(at)fnal(dot)gov> wrote:
> Thanks for the clarification Scott... What is the restore_command in recovery.conf does in case of streaming replication if it doesn't need logs available locally on the slave machine.
It copies the files. It has no way of knowing whether or not there's a WAL-shipping replica out there somewhere which needs them.
> Do you think if the streaming falls behind, then slave will request master to ship logs??????
The slave does not request the master to ship logs. The slave, when started uses the WAL files it finds in its locally-available WAL archive, then starts streaming from the master, which requires that there not be a gap between its local copies and what's still available on the master.
This is all covered in the documentation:
<http://www.postgresql.org/docs/9.2/static/high-availability.html>
--
Scott Ribe
scott_ribe(at)elevated-dev(dot)com
http://www.elevated-dev.com/
(303) 722-0567 voice
From | Date | Subject | |
---|---|---|---|
Next Message | Murthy Nunna | 2014-04-02 12:49:24 | Archive param questions? |
Previous Message | Murthy Nunna | 2014-04-01 23:20:09 | Re: Cascade Standby Configuration in 9.2.4 |