Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 417851337B54 for ; Tue, 19 Oct 2010 11:46:58 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 83637-05 for ; Tue, 19 Oct 2010 14:46:50 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from nrccenhts1.nrc.ca (nrccenhts2.nrc.ca [132.246.15.89]) by mail.postgresql.org (Postfix) with ESMTP id A388B1337B49 for ; Tue, 19 Oct 2010 11:46:50 -0300 (ADT) Received: from NRCWSTHCM1.NRC.CA (132.246.216.66) by nrccenhts2.nrc.ca (132.246.15.89) with Microsoft SMTP Server (TLS) id 8.1.436.0; Tue, 19 Oct 2010 10:46:50 -0400 Received: from [132.246.194.17] (132.246.216.202) by WSTMAIL.NRC.CA (132.246.216.66) with Microsoft SMTP Server (TLS) id 8.1.436.0; Tue, 19 Oct 2010 07:46:49 -0700 Message-ID: <4CBDAF58.9050503@nrc-cnrc.gc.ca> Date: Tue, 19 Oct 2010 07:46:48 -0700 From: Isabella Ghiurea Reply-To: isabella.ghiurea@nrc-cnrc.gc.ca Organization: CADC -NRC User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: Fujii Masao CC: "pgsql-admin@postgresql.org" Subject: Re: WAL log shipping + Streaming replication PG 9.0 questions References: <4CBC8886.9040608@nrc-cnrc.gc.ca> In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.119 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FS_REPLICA=3.599, RCVD_IN_DNSWL_MED=-2.3, SARE_SPEC_REPLICA=0.72 X-Spam-Level: X-Archive-Number: 201010/157 X-Sequence-Number: 35898 Fujii Masao wrote: > On Tue, Oct 19, 2010 at 2:48 AM, Isabella Ghiurea > wrote: > >> I have some questions regarding hot standby + streaming replication (PG >> 9.0) : what is master/primary server behavior if archive_command fails >> due to archive directory off line/unavailable? >> > > Unarchived WAL files continue to accumulate in pg_xlog directory while > the archive directory is unavailable. Then, if pg_xlog directory is > filled up, the PostgreSQL server causes the PANIC error. > > >> How about standby server behavior if restore command fails due to >> archive_master directory not available? >> > > After restore_command fails, the standby tries to read WAL file from > its pg_xlog directory. And, if there is no WAL file to recover in pg_xlog, > the standby tries to connect to the master and read the streamed WAL files > from the master. > > Regards, > > Thank you for all details. For the last question I ' m still a bit confused: if master_archive off line ( no archived WAL's available) what will be state of standby server ? Basically we are trying to design a solution where WAL archived directory is not a "single point of failure" for whole system ( we are planing to have WAL archived master directory on a separate machine and both server primary and standby will have read/write here) if this servers fails , we want to be able to continue normal user operation on master while standby server will have some latency. Isabella -- ----------------------------------------------------------- Isabella A. Ghiurea Isabella.Ghiurea@nrc-cnrc.gc.ca Canadian Astronomy Data Centre |http://www.nrc-cnrc.gc.ca/eng/services/hia/data-centre.html National Research Council of Canada, Herzberg Institute of Astrophysics 5071 West Saanich Road, Victoria BC V9E 2E7, Canada Phone: 250 363-3446 fax: 250 363-0045