Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 495569ED581 for ; Wed, 7 Dec 2011 14:12:29 -0400 (AST) Received: from mole.comp.uvic.ca ([142.104.5.70]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RYLyj-00022Y-TL for pgsql-admin@postgresql.org; Wed, 07 Dec 2011 18:12:28 +0000 Received: from strike.comp.uvic.ca (strike.comp.uvic.ca [142.104.191.242]) by mole.comp.uvic.ca (8.14.4/8.14.4) with ESMTP id pB7IBpAR029799; Wed, 7 Dec 2011 10:11:52 -0800 Message-ID: <4EDFAC67.9040809@uvic.ca> Date: Wed, 07 Dec 2011 10:11:51 -0800 From: Evan Rempel User-Agent: Thunderbird 2.0.0.23 (X11/20090825) MIME-Version: 1.0 To: "Nicholson, Brad (Toronto, ON, CA)" CC: Chris Hoover , "pgsql-admin@postgresql.org Admin" Subject: Re: Question about multiple slaves and Master loss. References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-UVic-Virus-Scanned: OK - Passed virus scan by ClamAV (clamd) on mole X-UVic-Scan: mole.comp.uvic.ca filter_version 3.1.51 X-Scanned-By: MIMEDefang 2.67 on 142.104.5.72 X-Pg-Spam-Score: -3.8 (---) X-Archive-Number: 201112/50 X-Sequence-Number: 38808 Can you have a slave of a slave? Basically set up A --> B --> C also A --> D --> E if A goes down, promote B which is protected by C If B goes down, D is your protection for A If C goes down, who cares. It takes 5 machines, but would give great protection. Evan. Nicholson, Brad (Toronto, ON, CA) wrote: > *From:* pgsql-admin-owner@postgresql.org > [mailto:pgsql-admin-owner@postgresql.org] *On Behalf Of *Chris Hoover > *Sent:* Wednesday, December 07, 2011 12:05 PM > *To:* pgsql-admin@postgresql.org Admin > *Subject:* [ADMIN] Question about multiple slaves and Master loss. > > > > I'm pretty sure that the answer to this question is no, but I wanted to > verify. > > > > Given the following scenario (pg 9.0): > > > > Server A (Master), Server B (A's streaming replication Slave), Server C > (A's streaming replication Slave) > > > > If you lose Server A, is there anyway to promote Server B to master and > keep Server C as B's slave without having to rebuild C from a backup of B? > > > > Basically, I'd like to be able to have 2 slaves running so that when the > master goes down, we can bring one slave online, and still have the > ability to very quickly recover if the new master where to fail before > server A could be recovered. > > > > Thanks, > > > > Chris > > > > Not that I am aware of. In practice though, C and B should me more or > less equivalent so as long as you are using a differential copy like > rsync you should be able to bring C up as a replica of B very quickly. > There is of course a small window though where you are not protected. > > > > Brad. > -- Evan Rempel erempel@uvic.ca Senior Systems Administrator 250.721.7691 Unix Services, University Systems, University of Victoria