Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WS4yk-0003OE-RT for pgsql-admin@arkaria.postgresql.org; Mon, 24 Mar 2014 13:31:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WS4yk-0008Fy-7Z for pgsql-admin@arkaria.postgresql.org; Mon, 24 Mar 2014 13:31:50 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WR5MA-0002aG-Cw for pgsql-admin@postgresql.org; Fri, 21 Mar 2014 19:43:54 +0000 Received: from obmail5.coxinc.com ([66.6.145.182] helo=coxinc.com) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WR5M6-0003D5-C8 for pgsql-admin@postgresql.org; Fri, 21 Mar 2014 19:43:53 +0000 Received: from ([10.211.24.102]) by ceiatlpms005.coxinc.com with ESMTP with TLS id j041111477.170386908; Fri, 21 Mar 2014 15:43:46 -0400 Received: from CMGATLPMS2003.cmg.int ([169.254.3.177]) by CMGATLPMS2002.cmg.int ([169.254.2.14]) with mapi id 14.01.0355.002; Fri, 21 Mar 2014 15:43:45 -0400 From: "Chatha, Karan (CMG-Atlanta)" To: Steve Crawford , "pgsql-admin@postgresql.org" Subject: Re: Replication Lag Thread-Topic: [ADMIN] Replication Lag Thread-Index: Ac9ErzvBoQ6W+VTPSjSnRkTKAPLmSQAq+MoAAAdw1nA= Date: Fri, 21 Mar 2014 19:43:45 +0000 Message-ID: <378D940FF9AE0145BA853EE92442D64334660CF3@CMGATLPMS2003.cmg.int> References: <378D940FF9AE0145BA853EE92442D64334660540@CMGATLPMS2003.cmg.int> <532C8F44.4030301@pinpointresearch.com> In-Reply-To: <532C8F44.4030301@pinpointresearch.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.211.24.5] Content-Type: multipart/alternative; boundary="_000_378D940FF9AE0145BA853EE92442D64334660CF3CMGATLPMS2003cm_" MIME-Version: 1.0 X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org --_000_378D940FF9AE0145BA853EE92442D64334660CF3CMGATLPMS2003cm_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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 sla= ve 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 =3D 60000 # max delay befor= e canceling queries max_standby_streaming_delay =3D 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 slave= s. All we see is replication lag which we measure in megs. We can reprodu= ce this by doing transactions on the master and we see that transactions are n= ot 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. Thi= s 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 si= mply replacing the binary and at times those have involved replication issu= es. 5. Anything of interest in the logs on the master or any of the standbys? B= e sure sufficient logging is enabled. Cheers, Steve Click here to report this= email as spam. --_000_378D940FF9AE0145BA853EE92442D64334660CF3CMGATLPMS2003cm_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

1)&n= bsp;     It was working= until March 8

2)&n= bsp;     We upgraded Po= stgres from 9.03 to 9.015 on Feb 19

3)&n= bsp;     Streaming Repl= ication

4)&n= bsp;     Right now we h= ave master on 9.015 and 7 slaves on 9.015 and one slave on 9.0.16

5)&n= bsp;     We have full l= ogging enable to syslog

6)&n= bsp;     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 =3D 60000  &nbs= p;            # max = delay before canceling queries

max_standby_streaming_delay =3D 60000

 

It is almost like these values are not being = honored.

 

Thx

 

KARAN CHATHA | Manager, Data Services | CMG Technology<= /o:p>

karan.chatha@coxinc.co= m | 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 producti= on 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 wh= ich 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 replicatio= n 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. Thi= s page is a good guide: htt= p://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 si= mply replacing the binary and at times those have involved replication issu= es.

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

Cheers,
Steve


Click here to report this email as spam.

--_000_378D940FF9AE0145BA853EE92442D64334660CF3CMGATLPMS2003cm_--