pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chatha, Karan (CMG-Atlanta) <Karan.Chatha@coxinc.com>
To: Steve Crawford <scrawford@pinpointresearch.com>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Replication Lag
Date: Fri, 21 Mar 2014 19:43:45 +0000
Message-ID: <378D940FF9AE0145BA853EE92442D64334660CF3@CMGATLPMS2003.cmg.int> (raw)
In-Reply-To: <532C8F44.4030301@pinpointresearch.com>
References: <378D940FF9AE0145BA853EE92442D64334660540@CMGATLPMS2003.cmg.int>
	<532C8F44.4030301@pinpointresearch.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

1)      It was working until March 8

2)      We upgraded Postgres from 9.03 to 9.015 on Feb 19

3)      Streaming Replication

4)      Right now we have master on 9.015 and 7 slaves on 9.015 and one slave on 9.0.16

5)      We have full logging enable to syslog

6)      What we see is that there are no loads or io but archives get stuck on one archive.  We have

7)      max_standby_archive_delay = 60000               # max delay before canceling queries

max_standby_streaming_delay = 60000



It is almost like these values are not being honored.



Thx

KARAN CHATHA | Manager, Data Services | CMG Technology
karan.chatha@coxinc.com | p: 678-645-4083| m: 404-713-1368

From: Steve Crawford [mailto:scrawford@pinpointresearch.com]
Sent: Friday, March 21, 2014 3:13 PM
To: Chatha, Karan (CMG-Atlanta); pgsql-admin@postgresql.org
Subject: Re: [ADMIN] Replication Lag

On 03/20/2014 07:42 PM, Chatha, Karan (CMG-Atlanta) wrote:
We are having replication lag issues in our production environment.  We are on postgres 9.015.
Er. 9.0.15?


We have one master and 8 slaves.  We don't see any loads or io on the slaves.  All we see is replication lag which we measure in megs.  We can reproduce
this by doing transactions on the master and we see that transactions are not coming over to slave.
Are you seeing a *lag* in replication or no replication at all?


Is there any way we are hitting a bug?

Possibly but I'm going to guess that the most likely location of the bug is somewhere in your configuration. You need to provide more information. This page is a good guide: http://wiki.postgresql.org/wiki/Guide_to_reporting_problems

In particular, I'd like to know for starters:

0. What form of replication are you using? Bucardo? Slony? Pgpool? Londiste? Mammoth? Hot-standby? Warm-standby? ...

1. Did it ever work?

2. If so, what changed? (configuration, upgrades, network, ???)

3. Are all machines on the same version?

4. Have you done any upgrades? If so, did you follow all the special notes regarding each upgrade? Occasionally minor upgrades require steps beyond simply replacing the binary and at times those have involved replication issues.

5. Anything of interest in the logs on the master or any of the standbys? Be sure sufficient logging is enabled.

Cheers,
Steve



Click here<https://www.mailcontrol.com/sr/n5zdpbVp7GPGX2PQPOmvUq6rRgRshdaJRpnmJk2o6cLsyL4wvU6ebKFo9FCU0sXrzYkFM...; to report this email as spam.

view thread (15+ messages)  latest in thread

Message-ID: <378D940FF9AE0145BA853EE92442D64334660CF3@CMGATLPMS2003.cmg.int>
Permalink:  ../378D940FF9AE0145BA853EE92442D64334660CF3@CMGATLPMS2003.cmg.int/
Also on:    postgresql.org/message-id/378D940FF9AE0145BA853EE92442D64334660CF3@CMGATLPMS2003.cmg.int

 · 

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: Karan.Chatha@coxinc.com, scrawford@pinpointresearch.com
  Subject: Re: Replication Lag
  In-Reply-To: <378D940FF9AE0145BA853EE92442D64334660CF3@CMGATLPMS2003.cmg.int>
  References: <378D940FF9AE0145BA853EE92442D64334660540@CMGATLPMS2003.cmg.int> <532C8F44.4030301@pinpointresearch.com> <378D940FF9AE0145BA853EE92442D64334660CF3@CMGATLPMS2003.cmg.int>

* 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