pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chander Ganesan <Chander@otg-nc.com>
To: Montaseri <montaseri@gmail.com>
Cc: Scott Whitney <swhitney@journyx.com>
Cc: Simon Riggs <simon@2ndquadrant.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Warm standby server
Date: Sun, 29 Jun 2008 09:53:56 -0400
Message-ID: <486793F4.2020301@otg-nc.com> (raw)
In-Reply-To: <8078a1730806261120v44d222ecx46dd345ca2b184e@mail.gmail.com>
References: <8078a1730806261051x6befaa27uf3c95affe9c37cc2@mail.gmail.com>
	<20080626175743.4E1B33E216E@mail.int.journyx.com>
	<8078a1730806261120v44d222ecx46dd345ca2b184e@mail.gmail.com>

Scott & Montaseri,

Montaseri wrote:
> While I am not an expert on WAL, but again I question the merits of 
> such sophisticated HA configuration. Of course there are use cases for 
> such configs, but I am only advocating best price performance kind of 
> mentality
>
> As WAL writes the journals all the way down to the disk (ie write thru 
> and not write behind) before ack-ing toward the next step in a DB 
> operation, increasing the number of mirrors (one production, one 
> on-site, one off-site, I count 3 plexes here) will prolong each 
> operation, with the following exponentially increasing write latencies
"traditional" warm-standby involves replicating the *archived* (read: 
not currently-in-use) WAL to the standby servers, something that doesn't 
require a synchronous write operation, and something that could be 
spread out over a period of time.  However, you might have an issue if 
the system copies across WAL's slower than new ones are generated.

Scott, you should be aware that the mechanism you are proposing has the 
potential to "lose" the transactions that had committed, but had not yet 
been archived.  That would most likely be the changes in the "currently 
being written" WAL file - which hadn't been filled up, and thus had not 
yet been archived.

For your colo standby server, you might consider using some synchronous 
mechanism for WAL storage.  Such a mechanism would have an impact on 
server performance but would allow you to achive durability of committed 
transactions.  I'll actually be talking a bit about this at the PGDay of 
Linux World (August 5th)...

-- 
Chander Ganesan
Open Technology Group, Inc.
One Copley Parkway, Suite 210
Morrisville, NC  27560
919-463-0999/877-258-8987
http://www.otg-nc.com
Ask me about Expert PostgreSQL, PostGIS, and other Open Source training.





view thread (10+ messages)  latest in thread

Message-ID: <486793F4.2020301@otg-nc.com>
Permalink:  ../486793F4.2020301@otg-nc.com/
Also on:    postgresql.org/message-id/486793F4.2020301@otg-nc.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: Chander@otg-nc.com, montaseri@gmail.com, swhitney@journyx.com, simon@2ndquadrant.com
  Subject: Re: Warm standby server
  In-Reply-To: <486793F4.2020301@otg-nc.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox