Calculating Replication Lag - units

From: David Kerr <dmk(at)mr-paradox(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Calculating Replication Lag - units
Date: 2012-06-25 20:17:22
Message-ID: 20120625201722.GB37347@mr-paradox.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Howdy,

When calculating Replication lag, I know that we have to compare the pg_current_xlog_location
to pg_last_xlog_receive_location, etc. but what I'm trying to figure out is what are
the units that I'm left with after the calculation.

(i.e., does the xlog_location imply some time value?)

Here's the output of the (slightly modified script)
Master: 5003964876715
Receive: 5003964876715
Replay: 5003964765203

receive.value 0
apply.value 111512

111512 isn't inherently useful to me on its own.

Any tips?

Thanks

Dave

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Steve Crawford 2012-06-25 21:17:22 Re: Calculating Replication Lag - units
Previous Message Marlon Pascoal 2012-06-25 19:04:43 08006 Connection Closed