pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Eduardo Morras <emorrasg@yahoo.es>
To: pgsql-admin@postgresql.org
Subject: Re: What causes streaming replication delay? [SOLVED, I think]
Date: Wed, 31 Aug 2016 23:14:34 +0200
Message-ID: <20160831231434.6a33f824d4d206394776526d@yahoo.es> (raw)
In-Reply-To: <20160831162222.21288e76@hydrogen.roaringpenguin.com>
References: <20160831114417.7fc1040d@hydrogen.roaringpenguin.com>
	<CAHw75vtu-Mxjp1uFB1iQctnT9Tew72=OgBE9sVO4mW+kHZEDKw@mail.gmail.com>
	<20160831131604.0f305404@hydrogen.roaringpenguin.com>
	<20160831162222.21288e76@hydrogen.roaringpenguin.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

On Wed, 31 Aug 2016 16:22:22 -0400
Dianne Skoll <dfs@roaringpenguin.com> wrote:

> Hi,
> 
> I think I solved it.  This is so ridiculous!
> 
> The primary and standby databases are 200km apart and the path
> between them has a bandwidth of only 100 Mb/s.  We had bursts of
> writes that created huge amounts of replication traffic.  In addition
> to streaming replication, we're still copying WAL files over for
> safety (and also because this is 9.1...)
> 
> We were hitting our bandwidth limit.
> 
> By adding the --bwlimit parameter to the rsync command that copies
> the WAL files, we can limit the bandwidth usage during the bursts
> while still keeping it high enough for the WAL-file archiving to keep
> up on average.
> 
> Keeping an eye on it for 24h before I completely declare it solved.

You were bitten by the RFC 1925 points 1, 2 and 9. A solution as is point 3 is "a bad idea". 

https://tools.ietf.org/html/rfc1925

> Regards,
> 
> Dianne.
> 
> 
> -- 
> Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin


---   ---
Eduardo Morras <emorrasg@yahoo.es>


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (4+ messages)

Message-ID: <20160831231434.6a33f824d4d206394776526d@yahoo.es>
Permalink:  ../20160831231434.6a33f824d4d206394776526d@yahoo.es/
Also on:    postgresql.org/message-id/20160831231434.6a33f824d4d206394776526d@yahoo.es

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: emorrasg@yahoo.es
  Subject: Re: What causes streaming replication delay? [SOLVED, I think]
  In-Reply-To: <20160831231434.6a33f824d4d206394776526d@yahoo.es>
  References: <20160831114417.7fc1040d@hydrogen.roaringpenguin.com> <CAHw75vtu-Mxjp1uFB1iQctnT9Tew72=OgBE9sVO4mW+kHZEDKw@mail.gmail.com> <20160831131604.0f305404@hydrogen.roaringpenguin.com> <20160831162222.21288e76@hydrogen.roaringpenguin.com> <20160831231434.6a33f824d4d206394776526d@yahoo.es>

* 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